Adrie
(Adrie den Blanken)
1
Hi,
We are trying to use the “Ignore Issues in Blocks” functionality, but cannot get it to work.
We define start with: \s*//\sSTART-SONAR-IGNORE and the end of a block with \s//\s*END-SONAR-IGNORE. See screenshot below.
In our code we use the following construction

Everything seems oke, but Sonarcloud still scans the code between START-SONAR-IGNORE and END-SONAR-IGNORE. What are we doing wrong?
Colin
(Colin)
2
Hey there!
I’ve used the same settings as you have… and all issues get ignored!
Just to be super clear, when you say:
Do you mean that SonarCloud is raising issues on this code, or something else? Feel free to share screenshots.
Adrie
(Adrie den Blanken)
3
Yes Sonarcloud is still raising issues, see screenshot below
Line 213 is between the ignored lines 211 → 217.
Colin
(Colin)
4
I’ve reached out to you via a private message to try and collect a reproducer!