use*_*405 14

checkstyle团队几天前添加了它.这是:https: //github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml

  • 截至撰写时,网址已更改为https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml (2认同)

Mar*_*lte 7

如果您有maven项目,则可以轻松集成google_checks(您必须至少使用maven-checkstyle-plugin版本2.17)

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-checkstyle-plugin</artifactId>
  <version>2.17</version>
  <configuration>
    <configLocation>google_checks.xml</configLocation>
  </configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)

执行checkstyle将使用google_checks,例如do

mvn checkstyle:checkstyle
Run Code Online (Sandbox Code Playgroud)

版本背景

Checkstyle项目集成了6.9版本的 google_checks .Maven-checkstyle-plugin版本2.17.是第一个,在checkstyle6.9之后发布(实际上它使用checkstyle6.11.2).所以,maven-checkstyle-plugin2.17是这个插件的第一个版本,它实际上附带了google_checks并提供它而没有任何其他依赖.

  • https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml (2认同)

dea*_*mon 3

创建此类文件的Google Summer of Code 项目暗示该文件尚不存在。