Dear All, I am trying to ignore issues in blocks as described in documentation:
https://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreIssues
I have some duplicated code in ClassA.java and ClassB.java and sonarqube complains about them as code smells. I want to ignore it in sonar analysis. So I am putting the code block like following in both files:
//START_NO__SONAR
//mycode to ignore
//END_NO__SONAR
In Sonarqube UI settings for sonar.issue.ignore.block: beginBlockRegexp is set as START_NO__SONAR and endBlockRegexp is set as END_NO__SONAR. However Sonarqube still complains about that and reports them as code smells.
I am wondering what I am doing wrong.. My sonarqube version is 7.1.
Please let me know if I am missing something.
Thanks a lot,
Kumar