【发布时间】:2016-12-06 21:07:13
【问题描述】:
我目前正在使用 maven checkstyle 和 google 规则。
每当我运行它时,我都会收到消息 [...] (coding) HiddenField: 'userId' hides a field.,我想隐藏它而不创建自己的规则 xml 文件。
有没有办法在不替换整个 xml 文件的情况下覆盖 checkstyle 中的规则?
到目前为止我的代码:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<configuration>
<configLocation>google_checks.xml</configLocation>
</configuration>
</plugin>
【问题讨论】:
标签: java maven checkstyle