Hi!
Is there a way to change the severity from 'style' for the errors found by the misra.py addon?
I have integrated cppcheck with misra in our cmake build environment so that it runs for every file that compiles, but unfortunately the severity reported by misra errors is 'style' which the error-parser doesn't recognize.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
Is there a way to change the severity from 'style' for the errors found by the misra.py addon?
I have integrated cppcheck with misra in our cmake build environment so that it runs for every file that compiles, but unfortunately the severity reported by misra errors is 'style' which the error-parser doesn't recognize.
I believe you can do it with
--template
. See the manual: http://cppcheck.sf.net/manual.pdfHowever that will affect all messages.. also internal from cppcheck. :-(
Last edit: Daniel Marjamäki 2020-06-05
If you want to add some argument for misra.py , for instance
--severity=warning
feel free to do that. You can publish a PR on github.