SonarQube™ Enterprise Edition Version 10.3 (build 82913)
Swift Xcode Project
Jenkins Pipeline Job
sonar-project.properties per repository
Server defined sonar.issue.ignore.allfile //\s*@nosonarscan
The coverage report is given to SonarQube but adding
// @nosonarscan to one of the source files is not taking into account. (should be ignored for coverage reporting)
There’s a property named sonar.issue.ignore.allfile for ignoring all issues on a file.
And a property named sonar.coverage.exclusions to exlude the file(s) from coverage.
Whereas the second takes glob patterns, i.e. **/foo*.java
One entry per line in Sonarqube server, a comma separated list in sonar-project.properties or CLI parameter.
Using sonar.coverage.exclusions would remove the file completely from SonarQube “Code” Tab.
We are using sonar.sources and sonar.inclusions but for specific files we would like to be able to mark them in code as @nosonarscan
Problem is the sonar.issue.ignore.allfile server setting doesn’t work.
And “should be ignored for coverage” means it should have no impact on the coverage reporting.