misra.py: restored previous output style. The output style was broken by 0c6d60d202
.
This commit is contained in:
parent
7c9b6d9bb0
commit
79f70cbb32
|
@ -61,10 +61,10 @@ def reportError(location, num1, num2):
|
||||||
errmsg = 'misra violation (use --rule-texts=<file> to get proper output) [' + id + ']'
|
errmsg = 'misra violation (use --rule-texts=<file> to get proper output) [' + id + ']'
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
if not cppcheckdata.reportError('[{file}:{line}] {severity}: {message}',
|
if not cppcheckdata.reportError('[{file}:{line}] ({severity}): {message}',
|
||||||
callstack=[(location.file, location.linenr)],
|
callstack=[(location.file, location.linenr)],
|
||||||
severity='style',
|
severity='style',
|
||||||
message = errmsg,
|
message = errmsg + '\n',
|
||||||
errorId = id,
|
errorId = id,
|
||||||
suppressions = suppressions,
|
suppressions = suppressions,
|
||||||
outputFunc = sys.stderr.write) is None:
|
outputFunc = sys.stderr.write) is None:
|
||||||
|
|
Loading…
Reference in New Issue