cppcheck plugin (MISRA)
Hi,
first of all I wanted to thank your great work!
I saw on the cppcheck documentation that exist a way to configure cppcheck to check according to some C Standard via cppcheck plugins.
http://cppcheck.sourceforge.net/manual.pdf Chapter 10 http://cppcheck.sourceforge.net/misra.php
What do you think about the integration into your codeclimate-cppcheck repo?
Regards, Antonio
Hi @antoniomolram, thanks for suggestion. I myself won't have the bandwidth for it though. Please feel free to send pull requests! :)
I've been experimenting with this lately. Adding support for addons (like MISRA) is pretty straightforward but it doesn't work due to Code Climate mounting the code directory as read only when running codeclimate-cppcheck. The read only flag is hardcoded here and I don't see any way to override it.
This can be worked around though by running cppcheck --dump against all of the source before running codeclimate-cppcheck. This will generate the *.dump files needed by cppcheck when running the MISRA plugin. These *.dump files will need to be included with the source code when performing the actual analysis with codeclimate-cppcheck.
So I've been investigating this, it seems like when we run codeclimate it mounts the /code volume as :ro readonly, this means that there's no straightforward way to just write to the src code folder during execution, probably as a security measure. I tested both --dump and --addon, same deal.
I'll take another look some time, but for now it seems like this is broken and not possible.