checkStype和findBugs校验
Posted 煮海焚天
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了checkStype和findBugs校验相关的知识,希望对你有一定的参考价值。
IDEA可以直接在setting中下载checkStyle和findBugs
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
<includeFilterFile>config/findbugs-rules.xml</includeFilterFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<consoleOutput>true</consoleOutput>
<configLocation>config/checkstyle-rules.xml</configLocation>
<suppressionsLocation>config/checkstyle-suppressions.xml</suppressionsLocation>
<failsOnError>true</failsOnError>
<includeTestSourceDirectory>false</includeTestSourceDirectory>
</configuration>
</plugin>
以上是关于checkStype和findBugs校验的主要内容,如果未能解决你的问题,请参考以下文章