Menu

Change misra.py severity

cola
2020-06-04
2020-06-05
  • cola

    cola - 2020-06-04

    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.

     
  • Daniel Marjamäki

    I believe you can do it with --template. See the manual: http://cppcheck.sf.net/manual.pdf

    However that will affect all messages.. also internal from cppcheck. :-(

     

    Last edit: Daniel Marjamäki 2020-06-05
  • Daniel Marjamäki

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.