Skip to content

Setup CheckStyle to your IDE

Ruslan Ponomarenko edited this page Nov 5, 2020 · 5 revisions

If you use IntelliJ IDEA follow steps:

  1. Download Checkstyle-IDEA plugin
  2. Go to Preferences/Tools/Checkstyle. Set "Checkstyle version" to 8.36.2. Click on add configuration File -> Browse -> and choose configuration file in root of project - checkstyle.xml. Also add a description for this Checkstyle file, e.g. "Dokazovi".

Click to activate this Configuration File and click Apply.

  1. To check project code select Checkstyle, and click the Check Project button. To check only your changes in the application, click "Check All Modified files".

Also if you just want to check the project you can use command: ./gradlew checkstyleMain -w

IMPORTANT! Always before creating PR to dev check project with checkstyle by running project or executing command: ./gradlew checkstyleMain -w

Clone this wiki locally