Menu

MISRA on CppCheck GUI

2019-11-24
2019-11-26
  • Morten MacFly

    Morten MacFly - 2019-11-24

    Dear all,
    I am aware that this topic has been discussed already but I still don't
    find a way to enable MISRA checker on the GUI.
    I do have the rules file and I can run the check manually just fine
    (using dump->analysis) on the command line.
    But what exactly do I have to do to see these results in the GUI
    (Version 1.8.9)?
    Thank you, Morten.

     
  • Daniel Marjamäki

    Are the dump files generated in the build dir during analysis?

    Location:
    1. File -> Edit project file
    2. In the "Project file" dialog goto second tab "Checking".
    3. At the top the "cppcheck build dir" is configured

     
  • Morten MacFly

    Morten MacFly - 2019-11-25

    Oh dear, after a very long time Ifinally figured out what happened: Ihhad a python.bat in the path that called python.exe but the output is different from what happens if you call python.exe directly. Now it works!

    Therefore, I would like to add a feature request: Explicitely setup the full path to the python executable. :-)

    Besides: The MISRA feature is really super-cool!

     
  • Morten MacFly

    Morten MacFly - 2019-11-25

    ...alright... forget about it - its already possible - I saw it now :-/

     
  • Morten MacFly

    Morten MacFly - 2019-11-25

    One minor thing is left: The MISRA statement could include th rule no. in the GUI. :-)

     
  • Daniel Marjamäki

    hmm ok.. is there anything we can do to help the user if that happens again. maybe show the exact command we run the misra addon with in the GUI.

     
  • Morten MacFly

    Morten MacFly - 2019-11-26

    That would probably help. However, in my case the command was simply "python" which triggered the .bat instead of the .exe. So it was actually my fault and such output wouldn't heave helped me, probably. Hard to say if you can avoid such.

     

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.