The title says it all... I have project which needs to MISRA 2004 clean, and the company was told CodeSonar was a good tool to do the static analysis.
On other static analysis tools you can add a magic comment to disable analysis for the next line\block of code, (PC-Lint is //lint -esym(42)
, CStat uses #pragma cstat_suppress="MISRAC++2008-6-4-1"
) but CodeSonar doesn't appear to have any equivalent - please tell me I'm wrong!
I've seen mention of a // NOSONAR
but that does not appear work on CodeSonar 5.1
(I'm rapidly coming to the conclusion CS is a pile junk written by people who have never programmed in the real world with SVN and multiple programmers, where disabling warnings in a fancy UI goes down the swanny when you're merging branches into trunk and all the line numbers change.)