Skip to content

Setup CheckStyle to your IDE

Nazar Vladyka edited this page Aug 29, 2019 · 7 revisions

If you use IntelliJ IDEA follow steps:

  1. Download Checkstyle plugin for your IDE. Go to - Other Settings/Checkstyle. Click on add configuration File -> Browse -> and choose configuration file in root of project - checkstyle.xml -> Ok. Also add description for this Checkstyle file, e.g. "GreenCity".

Click to activate this Configuration File -> Apply.

  1. Go to Editor -> Code Style -> Choose Scheme : Project -> Settings -> Copy to IDE... -> Enter -> Settings -> Import Scheme -> CheckStyle Configuration -> and choose configuration file in root of project - checkstyle.xml -> OK -> Apply