misra: fix crash if Misra severity Required/Mandatory/Advisory is not set
This commit is contained in:
parent
d7e08ce75f
commit
76e64dce8c
|
@ -583,7 +583,7 @@ class Rule:
|
|||
def __repr__(self):
|
||||
return "%d.%d %s" % (self.num1, self.num2, self.severity)
|
||||
|
||||
SEVERITY_MAP = { 'Required': 'warning', 'Mandatory': 'error', 'Advisory': 'information' }
|
||||
SEVERITY_MAP = { 'Required': 'warning', 'Mandatory': 'error', 'Advisory': 'information', 'style': 'style' }
|
||||
|
||||
class MisraChecker:
|
||||
|
||||
|
|
Loading…
Reference in New Issue