Skip to content
Snippets Groups Projects
Commit 12aaecf5 authored by Andreas Wundsam's avatar Andreas Wundsam
Browse files

add findbugs-exclude.xml

parent 214b1918
No related branches found
No related tags found
No related merge requests found
......@@ -285,7 +285,8 @@
<mkdir dir="${findbugs.results}"/>
<findbugs home="${findbugs.home}"
output="xml"
outputFile="${findbugs.results}/results.xml" >
excludeFilter="${basedir}/findbugs-exclude.xml"
outputFile="${findbugs.results}/results.xml" reportLevel='high'>
<sourcePath path="${source}" />
<sourcePath path="${thrift.out.dir}" />
<class location="${build}" />
......@@ -298,8 +299,10 @@
<target name="findbugs" depends="init,compile">
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs.home}/lib/findbugs-ant.jar"/>
<mkdir dir="${findbugs.results}"/>
<echo message="${basedir}/findbugs-exclude.xml"/>
<findbugs home="${findbugs.home}"
output="html"
excludeFilter="${basedir}/findbugs-exclude.xml"
outputFile="${findbugs.results}/results.html" >
<sourcePath path="${source}" />
<sourcePath path="${thrift.out.dir}" />
......
<FindBugsFilter>
<!--- Checks disabled on generated code -->
<Match>
<!-- don't complain about switch statements / external representation exposed
by generated parser files -->
<Class name="~net\.bigdb\.(query|yang)\.parser\..*(Lexer|Parser)" />
<Bug pattern="SF_SWITCH_NO_DEFAULT,EI_EXPOSE_REP" />
</Match>
<!-- checks disabled because of too many false positives -->
<Match>
<!-- BC_UNFIRMED_CAST complains about too many pseudo violations, where
we know an object is of a specific type (e.g., by checking the type field
of an openflow message -->
<Bug pattern="BC_UNCONFIRMED_CAST" />
</Match>
<!-- checks disabled because they are just not important -->
<Match>
<!-- RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE is not an important check -->
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
</Match>
</FindBugsFilter>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment