Details
Description
Hi all,
It would be nice if for some rules NOSONAR could be deactivated so that it is processed even on lines of code marked with NOSONAR.
The concrete case I have is that I want to have a rule (e.g. commentPatternMatcher) that checks if the NOSONAR comment is commented.
Example:
if(<violation>) //NOSONAR
and
if(<violation> //NOSONAR the reason for nosonar is that and that
The NOSNAR shall work for all rules except the one that (e.g. with a flag) has deactivated it.
With this it would be possible to create a rule that only is triggered if a developers places a NOSONAR comment without commenting it.
Some more details can be found here:
http://sonar.15.n6.nabble.com/RegexpSinglelineJavaCheck-does-not-recognize-quot-NOSONAR-quot-td4564993.html
Best regards,
Florian
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Freddy Mallet [ freddy.mallet ] |
| Summary | Ability to disable NOSONAR for certain rules | New rule to log a violation when the NOSONAR tag is used without any additional comment |
| Component/s | Squid [ 13592 ] |
| Labels | nosonar |
| Assignee | Freddy Mallet [ freddy.mallet ] |
| Project | Sonar [ 11694 ] | Sonar Java [ 12830 ] |
| Key | SONAR-3408 | SONARJAVA-72 |
| Component/s | Squid [ 15752 ] | |
| Component/s | Squid [ 13592 ] |