Ignore Issues in Blocks seems not to work

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

image

Everything seems oke, but Sonarcloud still scans the code between START-SONAR-IGNORE and END-SONAR-IGNORE. What are we doing wrong?

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.

Yes Sonarcloud is still raising issues, see screenshot below

Line 213 is between the ignored lines 211 → 217.

I’ve reached out to you via a private message to try and collect a reproducer!