Fix all properties errors for custom guidelines

There are several errors, raised during properties schemas
checking by custom guidelines. Need to fix them for successful
pep8 running.

implements bp custom-guidelines

Change-Id: Icd24498b8d36106412a61d4b82b00eb92095ffe9
This commit is contained in:
Peter Razumovsky
2016-02-18 14:17:04 +03:00
parent 1350ee4b7d
commit 1d16909dfd
21 changed files with 58 additions and 53 deletions

View File

@@ -25,7 +25,7 @@ from heat.engine import support
class HeatCustomGuidelines(object):
_RULES = []
_RULES = ['resource_descriptions']
def __init__(self, exclude):
self.error_count = 0
@@ -55,16 +55,13 @@ class HeatCustomGuidelines(object):
# check resource's description
#self._check_resource_description(cls)
# check properties' descriptions
#self._check_resource_schemas(cls, cls.properties_schema,
# 'property')
self._check_resource_schemas(cls, cls.properties_schema,
'property')
# check attributes' descriptions
#self._check_resource_schemas(cls, cls.attributes_schema,
# 'attribute')
# check methods descriptions
#self._check_resource_methods(cls)
# TODO(prazumovsky): remove when at least one check will be
# available
pass
def _check_resource_description(self, resource):
description = resource.__doc__