Hello:
There are some use cases where I need to exclude a package except 1 or 2 files.
Currently, you can exclude some files from coverage with sonar.coverage.exclusions property, and you can exclude a folder with path/to/package/*.java (if you are analyzing a Java project)
It would be a great feature to have also sonar.coverage.inclusions to re-include a specific file previously excluded. For instance:
<sonar.coverage.exclusions>path/to/package/*.java</sonar.coverage.exclusions>
<sonar.coverage.inclusions>path/to/package/IncludeThis.java</sonar.coverage.inclusions>
Would exclude the whole folder except IncludeThis.java
Hope this helps to improve Sonarqube. Best regards