cullsin
(Raja Kulasekaran)
March 30, 2022, 10:40am
1
Hi,
I am using Sonarqube, configured in pom.xml, maven configuration.
Can you please suggest to me the below syntax is valid?
<sonar.issue.ignore.block>
beginBlockRegexp=@sonarDisableStart
endBlockRegexp=@sonarDisableEnd
</sonar.issue.ignore.block>
Colin
(Colin)
March 31, 2022, 9:34am
2
Hey there.
We suggest that these settings should only be set in the UI (project level Administration > Analysis Scope ).
And for what it’s worth, here’s a user who managed to make it work:
Well that’s entirely misleading. The documentation clearly shows properties that can be set in a project analysis configuration file. Shouldn’t the documentation for SonarCloud reflect that the project configuration files are a hack or not even mention them then?
Is the sonar-project.properties file being deprecated for SonarCloud projects?
https://sonarcloud.io/documentation/analysis/analysis-parameters/
For anyone using project configuration files:
sonar.issue.ignore.allfile=e1
sonar.issue…
Badram
(Ram)
May 19, 2025, 5:00pm
3
Hello @Colin , I tried setting regex in UI and use them in my code but they don’t seem to be working. I am using C language. Do you have any suggestions on how exactly I can make use of sonar.issue.ignore.block. I would like to ignore a block of code from scanning for errors.
Colin
(Colin)
May 20, 2025, 7:30am
4
@Badram You’ll have to provide more details about what you’ve tried so far!
What regex pattern did you use?
The specific code where you tried to implement the start/end block?
How did you determine that it didn’t work as intended?
And I suggest you do this all in a new thread, instead of reviving a thread that is 3 years old. I will close this one.