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

build.xml: increase findbugs memory, exclude more generated code

parent 51dd04ee
No related branches found
No related tags found
No related merge requests found
......@@ -283,10 +283,12 @@
<target name="findbugs-xml" depends="init,compile">
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs.home}/lib/findbugs-ant.jar"/>
<mkdir dir="${findbugs.results}"/>
<findbugs home="${findbugs.home}"
<findbugs
home="${findbugs.home}"
output="xml"
excludeFilter="${basedir}/findbugs-exclude.xml"
outputFile="${findbugs.results}/results.xml" reportLevel='high'>
jvmargs="-Xmx1024m"
outputFile="${findbugs.results}/results.xml">
<sourcePath path="${source}" />
<sourcePath path="${thrift.out.dir}" />
<class location="${build}" />
......@@ -299,9 +301,11 @@
<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}"/>
<findbugs home="${findbugs.home}"
<findbugs
home="${findbugs.home}"
output="html"
excludeFilter="${basedir}/findbugs-exclude.xml"
jvmargs="-Xmx1024m"
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" />
<Or>
<Bug pattern="SF_SWITCH_NO_DEFAULT,EI_EXPOSE_REP,SBSC_USE_STRINGBUFFER_CONCATENATION" />
<Bug category="PERFORMANCE,MALICIOUS_CODE" />
</Or>
</Match>
<Match>
......
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