Sonar's Code Scanning configuration
Hello,
I'm setting up Sonar's Code Scanning in the AEM pipeline, and I would like to exclude specific issues that do not provide value to us. I've tried configuring the exclusions in the parent pom using:
- sonar.issue.ignore.multicriteria with value e1,
- sonar.issue.ignore.multicriteria.e1.ruleKey,
- sonar.issue.ignore.multicriteria.e1.resourceKey,
- sonar.exclusions.
It seems that this configuration is being ignored.
I've also attempted to create a sonar-project.properties file at the root of the project with the same content as described above. However, this also didn't work.
Lastly, I tried using @SuppressWarnings annotations, and in this case, it worked. But I find this to be a rather messy option, and I would prefer not to use it to promote project maintainability.
Could anyone provide guidance on how to manage these exclusions cleanly and centrally?
Thank you!