Resolution: Won't Fix
Affects Version/s: 1.12
Fix Version/s: None
Number of attachments :
With version 1.12 the NOSONAR tag has been introduced, allowing whoever has
access to the code to prevent sonar and the tools it employs to report
detected violations. Now, in our company, the policy is to not use this kind
of suppressing tags (NOPMD, NOSONAR) but to accept the occasional false
positive as the price to pay for proper, reliable reporting.
As far as I can tell, there is no way to prevent the use of NOSONAR, i.e. to
let the sonar plugin simply ignore this tag. This has been confirmed on the mailing list, see http://old.nabble.com/Disabling-use-of-NOSONAR-%28and-possible-taglist-bug-%29-to26828355.html#a26833632.
So I'd like to propose the addition of a mechanism to disable the effect of the NOSONAR tag, or make it possible to detect its use as a violation itself.