Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/396.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java ant中最敏感的findbugs选项_Java_Ant_Static Analysis_Findbugs - Fatal编程技术网

Java ant中最敏感的findbugs选项

Java ant中最敏感的findbugs选项,java,ant,static-analysis,findbugs,Java,Ant,Static Analysis,Findbugs,我正在运行ant中的find bugs,并试图将ant build.xml中的所有内容(属性、选项等)设置为查找bugs的最敏感设置。通过阅读文档和查看这里的示例,我得出结论,如果遇到bug,将是最敏感的设置。如果不是,请让我知道需要添加或更改的任何属性、选项等,以查找代码中可能存在的所有错误 <target name="findbugs" depends="jar"> <findbugs home="/home/me/Desktop/findbugs"

我正在运行ant中的find bugs,并试图将ant build.xml中的所有内容(属性、选项等)设置为查找bugs的最敏感设置。通过阅读文档和查看这里的示例,我得出结论,如果遇到bug,将是最敏感的设置。如果不是,请让我知道需要添加或更改的任何属性、选项等,以查找代码中可能存在的所有错误

<target name="findbugs" depends="jar">
    <findbugs home="/home/me/Desktop/findbugs"
        output="html"
        outputFile="bc.html"
        effort="max"
        reportLevel="low"
        workHard="true" 
        debug="true">
        <auxClasspath path="../foo/bin"/>
        <auxClasspath path="../bar/bin"/>
        <sourcePath path="../foo2/src" />
        <class location="bin/"/>
     </findbugs>
  </target>

不需要
workHard=“true”
,因为您已经有了
efforce='max'
。他们只是彼此的同义词。否则,它看起来像你有它


includeFilter
excludeFilter
,但如果您不列出其中任何一个,您将得到所有错误。

谢谢。我以前确实看到过,所以会去掉它,现在我想包括所有的bug,所以我还不需要使用include或exclude。