git-afsantos / haros_plugins

Plugin repository for the HAROS tool.
7 stars 2 forks source link

Update CppCheck plugin #10

Closed git-afsantos closed 5 years ago

git-afsantos commented 5 years ago

Even if I have blatant pointer mishandling in my code, they do not show up in the HAROS output.

Looking at the plugins source code, I found the answer: haros_plugin_cppcheck/rules.xml makes cppcheck only look for 26 specific source code style rule violations.

What's the reasoning behind this? Is it planned to extend this scope in the future?

Originally posted by @max-krichenbauer in https://github.com/git-afsantos/haros/issues/72#issuecomment-519737100

To do: update CppCheck plugin to include newer checks and reports.

git-afsantos commented 5 years ago

https://github.com/git-afsantos/haros_plugins/commit/7117fe682f324c6cb3300798150a5de007890ca1 provides a quickfix for this. Still, it should be improved in the future, to make the issue reporting consistent across all rules and checks.