Updates for issue #402

Adding severity to rule and output configurations.
This commit is contained in:
Jeremiah Leary 2020-07-04 14:07:37 -05:00
parent d164cba484
commit da0f615cea
1 changed files with 2 additions and 1 deletions

View File

@ -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):