How to exclude generated code from sonar processing and reporting?
I tried to exclude **/*generated*
but packages like org.blayo.generated
are still in report:
<plugin>
...
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<excludes>**/*generated*</excludes>
Edit: The right regular expression was **/generated/*.java
Use the sonar.exclusions
property for this:
<properties>
<sonar.exclusions>**/*generated*</sonar.exclusions>
</properties>