misra.py: restored previous output style. The output style was broken by 0c6d60d202.

This commit is contained in:
orbitcowboy 2018-06-05 14:16:25 +02:00
parent 7c9b6d9bb0
commit 79f70cbb32
1 changed files with 2 additions and 2 deletions

View File

@ -61,10 +61,10 @@ def reportError(location, num1, num2):
errmsg = 'misra violation (use --rule-texts=<file> to get proper output) [' + id + ']'
else:
return
if not cppcheckdata.reportError('[{file}:{line}] {severity}: {message}',
if not cppcheckdata.reportError('[{file}:{line}] ({severity}): {message}',
callstack=[(location.file, location.linenr)],
severity='style',
message = errmsg,
message = errmsg + '\n',
errorId = id,
suppressions = suppressions,
outputFunc = sys.stderr.write) is None: