Exclude assertions from static analysis.
<targetJdk>${java.version}</targetJdk>
<includeTests>true</includeTests>
<minimumTokens>50</minimumTokens>
- <excludes>
- <exclude>**/InjectedTest.java</exclude>
- </excludes>
+ <excludeRoots>
+ <excludeRoot>target/generated-test-sources/assertj-assertions</excludeRoot>
+ </excludeRoots>
<minimumTokens>50</minimumTokens>
</configuration>
<dependencies>
</execution>
</executions>
<configuration>
- <excludes>**/MavenJavaTest.txt.java</excludes>
+ <excludes>**/*Assert*.java,**/MavenJavaTest.txt.java</excludes>
<failOnViolation>false</failOnViolation>
<configLocation>checkstyle-configuration.xml</configLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
