Skip to content

3. How to use StartupHeroes Checkstyle in Intellij IDEA

Özlem Ulağ edited this page Dec 6, 2017 · 23 revisions

Install Checkstyle-IDEA Plugin

  1. Open IDE Settings: File > Settings > IDE Settings > Plugins.

  1. Search "Checkstyle-idea" plugin.

  1. Choose plugin and click "Download and install".

  2. Reboot IntellijIDEA after download.

Config CheckStyle-IDEA

  1. Open Config CheckStyle-IDEA Settings: File > Settings > Other Settings > Checkstyle.

  1. Add StartupHeroes checkstyle jar file (startupheroes-checks-X.XX.X.jar) to Third-Party checks.

You can dowload startupheroes-checks-1.0.10.jar.

  1. Add startupheroes_checks.xml as configuration file. Add description and choose Configuration file.

images/idea/idea_add_xml_file.png

  1. Click "Next" and check that validation is ok.

  2. Click "Apply" and "OK".

Scan file, module or all project.

  1. Open a file and run checkstyle from sidebar for that file or the module of that file or all project.

Config Inspections

Please follow here for code style and inspection settings.