In fact, Checkstyle is a jar package, and third-party developers have developed Eclipse/idea plugins.
Website:
Https://github.com/checkstyle/checkstyle
Eclipse Plugin:
Http://www.cnblogs.com/EasonJim/p/7690008.html
Idea Plugin:
Https://github.com/jshiell/checkstyle-idea
Plug-in detection xml:
Google:https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
Sun:https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/sun_checks.xml
Description
Google code style is really good, but it is using 2 spaces to indent! So set to 4 spaces as needed.
Google style is modified to 4 indents:
Because the file is frequently updated, so the direct last officer network download back to modify. The modified places are as follows:
Outside the question:
It is not recommended to modify this file, after all, this is not the style of writing code files, you can selectively skip the information prompted.
Java Code specification and quality Check plugin-checkstyle (official resources)