Ignoring Issues in Code blocks

Hi Team,

We want to ignore some commented code blocks that give issues in Sonarqube (Remove Commented code) of Salesforce claases, we have implemented // BEGIN-NOSCAN at start of code clock and at end // END-NOSCAN and added Regular Expression for Start of Block as \s*//\s*BEGIN-NOSCAN and Regular Expression for End of Block as \s*//\s*END-NOSCAN at the Project level in SonarQube
When scan is been done again similar issues have been showed up in Sonarqube, ideally it should ignore the code block right??

We are using 2025.4 Enterprise edition

Please provide us the soln..

Thanks
Manjunath S A

Hey there.

I just tried this out in a project with these settings:

And indeed it supressed the issue.

What does your setup look like? Feel free to share screenshots.