summaryrefslogtreecommitdiff
path: root/tools/custom_guidelines.py
diff options
context:
space:
mode:
authorPeter Razumovsky <prazumovsky@mirantis.com>2016-02-18 14:17:04 +0300
committerPeter Razumovsky <prazumovsky@mirantis.com>2016-02-26 15:47:46 +0300
commit1d16909dfd4f90513b8e011eea02dc6800c64062 (patch)
tree952815c499e6d8cd844fe12c6dd31bbd637bf027 /tools/custom_guidelines.py
parent1350ee4b7dabdc09bb9df5a3061d1501d6306ea0 (diff)
downloadheat-1d16909dfd4f90513b8e011eea02dc6800c64062.tar.gz
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
Diffstat (limited to 'tools/custom_guidelines.py')
-rw-r--r--tools/custom_guidelines.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/custom_guidelines.py b/tools/custom_guidelines.py
index 8f435af6a..4b7861a37 100644
--- a/tools/custom_guidelines.py
+++ b/tools/custom_guidelines.py
@@ -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__