Same situation as with Undocumented API (SONAR-1901) - it's hard to find those lines without violations.
Commented LOC metric does not include fully commented source code
Java: remove metric "commented out lines of code" and "comments" metric must include all comments
Improve detection of blocks of commented-out lines of code
Works well Evgeny. The violation message should be "This block of commented-out lines of code should be removed" instead of "It's better to remove commented-out lines of code"
The next improvement to this implementation could be to group adjacent violations like :
But this is not a blocker issue to release Sonar 2.13 as is.
Violation message changed in 19ea0e8.
For the improvement I created separate issue - SONAR-3119
Upcoming IT with a squid-ruling