Skip to content

3. How to use StartupHeroes Checkstyle in Intellij IDEA

ozlmulg edited this page Aug 11, 2021 · 23 revisions

Install Checkstyle-IDEA Plugin

  1. Open IDE Settings: Intellij IDEA > Preferences > 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: Intellij IDEA > Preferences > Checkstyle.

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

You can dowload latest StartupHeroes Checkstyle version Jar.

Jar included in es.startuphero.checkstyle.startupheroes-checks package.

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

You can use option 'Use a Checkstyle file accessible via HTTP' by giving url of startupheroes_checks.xml file.

Or, you can use option 'Use a local Checkstyle file' by giving startupheroes_checks.xml file.

  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.