public class ExampleClass {
@SuppressWarnings("all")
public void exampleMethod() {
// Code here
}
}
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<configuration>
<effort>Max</effort>
<threshold>High</threshold>
<xmlOutput>true</xmlOutput>
<excludeFilterFile>${project.basedir}/findbugs-exclude-filter.xml</excludeFilterFile>
</configuration>
<executions>
<execution>
<id>findbugs</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<FindBugsFilter>
<Match>
<Bug pattern="APP_DONT_OVERRIDE_EQUALS_IN_SUPERCLASS" />
</Match>
<Match>
<Bug pattern="CN_IDIOM" />
</Match>
<!-- Add more bug patterns as required -->
</FindBugsFilter>