generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 11
Setup CheckStyle to your IDE
Ruslan Ponomarenko edited this page Nov 5, 2020
·
5 revisions
- Download Checkstyle-IDEA plugin
- 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.
- 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