When a line of code is decorated with a //NOSONAR comment, Sonar seems to correctly ignore specific code quality rules (eg non conforming naming standards).
However, code duplication problems are still detected for lines so decorated.
Is there a simple way to make Sonar ignore duplication?
Note: I don't want to create a special exception on the sonar server, because every dev had their own local sonar instance, so it has to work "everywhere".
//NOSONAR only work on issues. But the root cause of your issue is "every dev had their own local sonar instance". This goes against the SonarQube philosophy and prevent you from settings exclusions. The question then would be: Why don't you have a single central SonarQube server?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With