Menu

Misra check not working from the GUI

vix
2021-07-21
2022-11-09
  • vix

    vix - 2021-07-21

    I was able to run misra check successfully from the command line, with the options

    cppcheck --dump main.cpp
    python misra.py --rule-texts=<path-to-rule-texts> main.cpp.dump
    

    Now I tried to use the GUI.
    I created a cppcheck project file where I enabled Addons >> MISRA C 2012 and I se the proper path to MISRA rule texts file.
    But I see that no .dump files are generated, and no misra checks are executed.

    I read about a misra.json file, but I understood it's a different way to execute misra checks from the command line.
    I don't think I need it from the GUI.

    Can you clarify how to use misra from the GUI?
    Thanks

     
  • vix

    vix - 2021-07-21

    One more test: I used
    cppcheck --addon=misra.json main.c
    and I see that misra check are executed.

    So the issue is in the GUI only.

     
  • Daniel Marjamäki

    check in the cppcheck build dir, you should get dump files there. the path to the cppcheck build dir is shown in the project dialog at the top of the "Analysis" tab.

     
  • vix

    vix - 2021-07-21

    Some files are created in the build dir (.a1, .c.snalyzerinfo, *.s1), but no dump files

     
  • vix

    vix - 2021-08-12

    Can I check something else to discover why MISRA check doesn't work from the GUI?
    Thanks

     
  • vix

    vix - 2021-12-15

    Sorry for pushing,
    but is there any news on this behavior?

    Thanks

     
  • Daniel Marjamäki

    oops I forgot about this! it was good you reminded me.

     

    Last edit: Daniel Marjamäki 2021-12-15
  • vix

    vix - 2022-05-18

    Hello @Daniel Marjamäki
    did you have a chance to investigate on this issue?
    Thanks

     
  • Daniel Marjamäki

    please share the GUI project file.

    And can you try to run the GUI project on the command line:

    cppcheck --project=guiproject.cppcheck
    

    does misra work then?

     
  • Gianni Perugini

    Gianni Perugini - 2022-11-09

    Dear all,

    I have the same problem with cppcheck GUI version 2.9. Misra check doesn't produce any result.
    Cppcheck works correctly in the command shell but the GUI doesn't work.

    Running the command from the shell:
    cppcheck --project=cppc.cppcheck it works correctly even if it doesn't find the rule file.

    Attached is the cppc.cppcheck file.

    Could you help me please?

    Thanks.
    BR
    Gianni Perugini

     

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.