Commit 1f03debb by Tuomas Riihimäki

Add findbugs exclude filter file

Here we can add excludes and includes to manage the bug classes
More can be found from: http://findbugs.sourceforge.net/manual/filter.html
1 parent 922082b2
<FindBugsFilter>
<!--
@EJB annotated fields should not be transient, but they are detected as
non-serializable instance fields in serializable class (SE_BAD_FIELD)
See https://stackoverflow.com/questions/13700306/best-practice-for-serialization-for-ejb-and-cdi-beans
-->
<Match>
<Class name="~fi\.codecrew\.moya\.web\..*"/>
<!-- We assume that most field names contain the string 'Bean'-->
<Field name="~.*[Bb]ean.*"/>
<Bug pattern="SE_BAD_FIELD"/>
</Match>
<Match>
<Class name="fi.codecrew.moya.handler.SessionStore" />
<Field name="~.*[Bb]ean.*"/>
<Bug pattern="SE_BAD_FIELD"/>
</Match>
<Match>
<Class name="fi.codecrew.moyamgmt.handler.SessionStore" />
<Field name="~.*[Bb]ean.*"/>
<Bug pattern="SE_BAD_FIELD"/>
</Match>
<!--Do not try to check the autogenerated model files ending in: '_' -->
<Match>
<Class name="~fi\.codecrew\.moya\.model\..*_"/>
</Match>
</FindBugsFilter>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
......@@ -179,8 +179,41 @@
<version>2.17</version>
<scope>provided</scope>
</dependency>
<!-- These are required for findbugs annotations-->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>${findbugs.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>${findbugs.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>${findbugs-maven.version}</version>
<configuration>
<excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
<includeFilterFile>findbugs-include.xml</includeFilterFile>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<configuration>
<excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
<includeFilterFile>findbugs-include.xml</includeFilterFile>
</configuration>
</plugin>
</plugins>
</reporting>
<parent>
<groupId>fi.codecrew.moya</groupId>
<artifactId>moya</artifactId>
......
......@@ -32,7 +32,8 @@
<slf4j.version>1.7.25</slf4j.version>
<logback.version>1.2.3</logback.version>
<testng.version>6.11</testng.version>
<findbugs.version>3.0.1</findbugs.version>
<findbugs-maven.version>3.0.5</findbugs-maven.version>
<javamelody.version>1.65.0</javamelody.version>
<primefaces.version>6.0</primefaces.version>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!