misra.py: strip error message so it does not end with \r
This commit is contained in:
parent
48738c22eb
commit
ac38e9fdb3
|
@ -4063,7 +4063,7 @@ class MisraChecker:
|
||||||
if self.path_premium_addon:
|
if self.path_premium_addon:
|
||||||
for line in cppcheckdata.cmd_output([self.path_premium_addon, '--cli', '--get-rule-text=' + errorId]).split('\n'):
|
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('{'):
|
if len(line) > 1 and not line.startswith('{'):
|
||||||
errmsg = line
|
errmsg = line.strip()
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
errmsg = 'misra violation %s with no text in the supplied rule-texts-file' % (ruleNum)
|
errmsg = 'misra violation %s with no text in the supplied rule-texts-file' % (ruleNum)
|
||||||
|
|
Loading…
Reference in New Issue