我设法在我的 maven 构建过程中运行 findbugs,并且我还在 eclipse 中配置了 findbugs。但是,当在 Eclipse 和 Maven 中运行时,我会遇到不同的错误,而且我似乎无法找到一个设置,其中错误的数量与 Eclipse 和 Maven 中的匹配。
我的 Maven 设置是这样的:
<version>2.5.2</version>
<configuration>
<failOnError>false</failOnError>
<threshold>Normal</threshold>
<effort>Default</effort>
<xmlOutput>true</xmlOutput>
<findbugsXmlOutput>true</findbugsXmlOutput>
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
</configuration>
在 Eclipse 中,我有:
Findbugs Version: 2.0.1
Analysis Effort: Default
Minimum Rank to report: 20
Minimum Confidence to Report: Medium
Reported categories: All
使用这些设置,我在 Eclipse 中遇到了更多错误。我的主要问题是,我什至无法匹配 maven 和 eclipse 之间的不同设置。