is there a way to configure inclusions for code coverage reporting on sonarqube?
I’m trying to aggregate quality metrics for a large and aged project on sonarqube. The project has huge amounts of legacy code without proper code coverage but there is also newer code that has to meet certain coverage criteria. To track the latter, I need to restrict the code coverage report to classes in certain packages and with certain naming patterns.
With Maven, JaCoCo and Jenkins it is possible to do so simply by setting coverage inclusions.
Sonarqube only seems to have an option to exclude files from the coverage report (sonar.coverage.exclusions) which means way to much different patterns to manage in my case.
Is there something I’m missing or should this be a feature-request?
Thanks a lot!
Sonarqube: 7.1 (build 11001) Community