Updates for issue #402
Adding severity to rule and output configurations.
This commit is contained in:
parent
d164cba484
commit
da0f615cea
|
|
@ -18,7 +18,7 @@ class rule():
|
|||
self.severity = severity.set_error_severity
|
||||
self.dFix = {}
|
||||
self.dFix['violations'] = {}
|
||||
self.configuration = ['indentSize', 'phase', 'disable', 'fixable']
|
||||
self.configuration = ['indentSize', 'phase', 'disable', 'fixable', 'severity']
|
||||
|
||||
def configure(self, dConfiguration):
|
||||
'''Configures attributes on rules using a dictionary of the following form:
|
||||
|
|
@ -158,6 +158,7 @@ class rule():
|
|||
dConfig = {}
|
||||
for sParameter in self.configuration:
|
||||
dConfig[sParameter] = getattr(self, sParameter)
|
||||
dConfig['severity'] = self.severity.name
|
||||
return dConfig
|
||||
|
||||
def _get_solution(self, iLineNumber):
|
||||
|
|
|
|||
Loading…
Reference in New Issue