From 76e64dce8c10fadc675199d24f314f6e716174b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 12 Apr 2019 12:28:44 +0200 Subject: [PATCH] misra: fix crash if Misra severity Required/Mandatory/Advisory is not set --- addons/misra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/misra.py b/addons/misra.py index 4c56371f1..4a9aa4801 100755 --- a/addons/misra.py +++ b/addons/misra.py @@ -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: