How to make Sonar ignore some classes for codeCoverage metric?
At the time of this writing (which is with SonarQube 4.5.1), the correct property to set is sonar.coverage.exclusions, e.g.: <properties> <sonar.coverage.exclusions>foo/**/*,**/bar/*</sonar.coverage.exclusions> </properties> This seems to be a change from just a few versions earlier. Note that this excludes the given classes from coverage calculation only. All other metrics and issues are calculated. In order to … Read more