For more information see the readme files in the modules.
To minimize the amount of changes done in PR, please use code style configuration from this repository.
The code style is in the EditorConfig file.
- Enable
EditorConfig
plugin if it is not already enabled - Go to
Settings
->Editor
->Code Style
- check
Enable EditorConfig support
if not already enabled - in
Formatter Control
checkEnable formatter markers in comments
if not already enabled
- check
Optional
: you can also use the Save Actions plugin to automatically reformat the code and imports on each save
- Install
CheckStyle-IDEA
plugin - Go to
Settings
->Tools
->Checkstyle
- Checkstyle version: any version from
8.24
to8.43
(latest at the time of writing) should work (if you select some version and then add the config file and the file is loaded successfully, you should be good to go) - Scan scope
Only Java sources (including tests)
- Set
Treat Checkstyle errors as warnings
by your personal preference - Add a configuration file - click on
+
in theConfiguration File
section - Use a local checkstyle file from the
checkstyle
directory and set some description (for exampleTNB configuration
) - Mark the newly added configuration as
active
- Checkstyle version: any version from
See here