如何使用 Sonar 中的 FindBugs 配置文件作为规则集Maven FindBugs 插件 https://gleclaire.github.io/findbugs-maven-plugin/?
您可以放置您的文件,即findbugs-sonar.xml
在 src/main/resource 文件夹中,并在 Maven 报告设置中指定路径,如下所示:
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.3-SNAPSHOT</version>
<configuration>
<includeFilterFile>findbugs-sonar.xml</includeFilterFile>
</configuration>
</plugin>
</plugins>
</reporting>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)