You’ve raised a very important point, but it seems we’re on our own, see this thread
Guess we will need to diff their sonar.exclusions
with the sonar.exclusions
configured at
Sonarqube server and break the build if there is more excluded.
Still considering how to implement that for Maven pipelines using the sonar:sonar
goal , any ideas !?
Will use api/settings/values?keys=sonar.global.exclusions
and compare it with the given
property sonar.exclusions
from the pom.
The tricky part is, when the global setting uses glob patterns and sonar.exclusions has absolute path.