zserio icon indicating copy to clipboard operation
zserio copied to clipboard

Consider to remove cppcheck static analysis tool

Open mikir opened this issue 1 year ago • 1 comments

We have started to use clang-tidy static analysis tool for C++ (please see issue #492).

So, currently we are using two different C++ static analysis tools. Because 'cppcheck' seems to be simplier and gives more false positive, consider to remove cppcheck completely. This will save effort during regular update of cppcheck version.

mikir avatar May 10 '23 13:05 mikir

We have found out that the cppcheck can catch some Misra guideline while clang-tidy or compiler does not. For example:

"A function shall not contain unreachable statements"

Therefore, we will keep cppcheck until we found some open source possibility how to check Misra C++ 2023 guidelines.

mikir avatar Mar 07 '24 11:03 mikir

We will use SonarCloud instead. We can get rid of that.

mikir avatar Apr 12 '24 08:04 mikir