misra.py: strip error message so it does not end with \r

This commit is contained in:
Daniel Marjamäki 2022-07-08 16:11:15 +02:00
parent e64e5811ab
commit e0bc871bae
1 changed files with 1 additions and 1 deletions

View File

@ -4064,7 +4064,7 @@ class MisraChecker:
if self.path_premium_addon:
for line in cppcheckdata.cmd_output([self.path_premium_addon, '--cli', '--get-rule-text=' + errorId]).split('\n'):
if len(line) > 1 and not line.startswith('{'):
errmsg = line
errmsg = line.strip()
break
else:
errmsg = 'misra violation %s with no text in the supplied rule-texts-file' % (ruleNum)