Misra: improve misra.py (#3343)

This commit is contained in:
escherstair 2021-07-19 14:29:53 +02:00 committed by GitHub
parent 5440af672e
commit 2d57f60225
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -3384,7 +3384,7 @@ class MisraChecker:
elif len(self.ruleTexts) == 0:
errmsg = 'misra violation (use --rule-texts=<file> 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
<...>
'''