# Java Checkstyling --- ###### tags: Java, Coding Standard [TOC] The Google checkstyle with small modification is provided in [<code>java-checkstyle.xml</code>](https://gist.github.com/kildo162/a06eb8e53a6e81337ba6c357eb8a320c) . Please use it in your IDE. ## For IDEA: - Install checkstyle plugin - Settings -> Tools -> CheckStyle -> Add new checkstyle linking to the provided <code>java-checkstyle.xml</code> ### To support the checkstyle We need you to configure IDEA to apply the checkstyle it its code style: - Settings -> Editor -> CodeStyle -> Java -> Scheme -> the settings icon (gear) -> Import Scheme -> CheckStyle Configuration - Choose the <code>java-checkstyle.xml</code> location ## How to run Use the checkstyle window Right click to class and choose Check Current File > Checkstyle has a flaw, it cannot validate the maximum length of a continuation indentation, there is no tool supporting this currently, so if you detect multiple wrong indentations inside a class, please use <code>Ctrl + Alt + L</code> (Reformat Code)
{"metaMigratedAt":"2023-06-16T02:36:33.226Z","metaMigratedFrom":"Content","title":"Java Checkstyling","breaks":true,"contributors":"[{\"id\":\"2334031a-2da8-428f-bbf3-446b8a4f0d1d\",\"add\":1091,\"del\":38}]"}
Expand menu