【问题标题】:Most sensitive findbugs options in antant 中最敏感的 findbugs 选项
【发布时间】:2014-09-23 17:03:10
【问题描述】:

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

<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>

【问题讨论】:

    标签: java ant static-analysis findbugs


    【解决方案1】:

    不需要workHard="true",因为您已经拥有effort='max'。它们只是彼此的同义词。否则,看起来你拥有它。

    includeFilterexcludeFilter,但是如果你没有列出其中任何一个,你就会得到所有的错误。

    【讨论】:

    • 谢谢。我之前确实看到过,所以将其删除,到目前为止,我想包含所有错误,因此我不需要使用包含或排除。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-12
    • 1970-01-01
    • 2012-05-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多