From 2d57f60225fa019ee62780cbdd0d863189408205 Mon Sep 17 00:00:00 2001 From: escherstair Date: Mon, 19 Jul 2021 14:29:53 +0200 Subject: [PATCH] Misra: improve misra.py (#3343) --- addons/misra.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/misra.py b/addons/misra.py index c03890a1f..4fc3896c8 100755 --- a/addons/misra.py +++ b/addons/misra.py @@ -3384,7 +3384,7 @@ class MisraChecker: elif len(self.ruleTexts) == 0: errmsg = 'misra violation (use --rule-texts= to get proper output)' else: - return + errmsg = 'misra violation %s with no text in the supplied rule-texts-file' % (ruleNum) if self.severity: cppcheck_severity = self.severity @@ -3842,10 +3842,12 @@ Format: <..arbitrary text..> Appendix A Summary of guidelines -Rule 1.1 +Rule 1.1 Required Rule text for 1.1 -Rule 1.2 +continuation of rule text for 1.1 +Rule 1.2 Mandatory Rule text for 1.2 +continuation of rule text for 1.2 <...> '''