是否可以使用正则表达式排除findbugs报告的所有错误?

时间:2017-10-24 02:46:23

标签: java maven findbugs

我对Maven完全不熟悉。我试图通过findbugs过滤器文件中的正则表达式排除项目中所有类的findbugs插件报告的所有错误,该文件匹配~. *等所有内容,如下面的代码所示,但它不起作用。这可能在第一时间?如果是这样的话?提前谢谢!

<FindBugsFilter>
    <Class name="~.*"/>
    <Bug pattern="~.*"/>
</FindBugsFilter>

在pom.xml中添加了排除文件的引用

<properties>
    <findbugs.includeTests>findbugsfilter.xml</findbugs.includeTests>
    <checkstyle.suppressions.location>suppression.xml</checkstyle.suppressions.location>
</properties> 

0 个答案:

没有答案
相关问题