Is there a Checkstyle rule file with the Google Java Style?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
If you have a maven-project, you can easily integrate google_checks (you have to use at least
maven-checkstyle-plugin
version 2.17)Executing checkstyle will use google_checks, e.g. do
Version-background
Checkstyle-project integrates google_checks from version 6.9 on. Maven-checkstyle-plugin version 2.17. is the first one, which is released after checkstyle6.9 (actually it uses checkstyle6.11.2). So, maven-checkstyle-plugin2.17 is the first version of this plugin, which actually ships with google_checks and provides it without any other dependency.
The Google Summer of Code project to create such a file implies, that it doesn't exist yet.
The checkstyle team added it several days ago. Here it is : https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml