-
Notifications
You must be signed in to change notification settings - Fork 2
3. How to use StartupHeroes Checkstyle in Intellij IDEA
ozlmulg edited this page Aug 11, 2021
·
23 revisions
Install Checkstyle-IDEA Plugin
- Open IDE Settings: Intellij IDEA > Preferences > Plugins.
- Search "Checkstyle-idea" plugin.
-
Choose plugin and click "Download and install".
-
Reboot IntellijIDEA after download.
- Open Config CheckStyle-IDEA Settings: Intellij IDEA > Preferences > Checkstyle.
- 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.
- 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.
-
Click "Next" and check that validation is ok.
-
Click "Apply" and "OK".
- Open a file and run checkstyle from sidebar for that file or the module of that file or all project.