【发布时间】:2020-03-17 10:31:04
【问题描述】:
我的pom.xml 中有以下配置:
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<configuration>
<configLocation>google_checks.xml</configLocation>
<failOnViolation>true</failOnViolation>
<enableFilesSummary>false</enableFilesSummary>
</configuration>
</plugin>
</plugins>
</reporting>
它设置为使用 Google 编码风格,但使用 sun_checks.xml 文件(这是此插件的默认设置):
mvn checkstyle:check | grep sun
[INFO] There are 913 errors reported by Checkstyle 8.19 with sun_checks.xml ruleset.
我的 POM 配置有什么问题?
提前谢谢你。
【问题讨论】:
标签: maven checkstyle