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 <...> '''