Google Java Style Checker Rules

Is there a Checkstyle rule file with Google Java style ?

+6
source share
3 answers
+13
source

If you have a maven project, you can easily integrate google_checks (you should use at least maven-checkstyle-plugin version 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> 

Doing checkstyle will use google_checks, for example. to do

 mvn checkstyle:checkstyle 

Background version

Checkstyle-project integrates google_checks from version 6.9 in. Maven-checkstyle-plugin version 2.17. is the first one issued after checkstyle6.9 (actually it uses checkstyle6.11.2 ). So maven-checkstyle-plugin2.17 is the first version of this plugin that actually comes with google_checks and provides it without any other dependency.

+5
source

The Google Summer of Code project for creating such a file implies that it does not exist yet.

+3
source

All Articles