Skip to content

How to use SevNTU Checkstyle in Intellij IDEA

Roman Ivanov edited this page Nov 27, 2013 · 4 revisions

Table of Contents

Install CheckStyle-IDEA

1) Open IDE Settings: file>Settings>IDE Settings>plugins.

2) Click "Browse repositories".

3) Search "Checkstyle-idea".

4) Choose plugin and click "Download and install".

5) Wait for downloading and installing.

6) Reboot IDEA.

Download configuration file for CheckStyle-IDEA

1) Download latest sevntu-checkstyle-idea-extension-X.XX.X.jar from our repository.

2) Download checkstyle-default-configuration.xml with all SevNTU checks with default configuration settings.

Config CheckStyle-IDEA

1) Open Config CheckStyle-IDEA Settings: file>Settings>IDE Settings>CheckStyle

2) Add Third-Party checks.

3) Add Configuration file. Add description and choose Configuration file.

Click "Next" and check that validation is ok.

4) Click "Apply" and "Ok".

Config Inspections

1) Open: Analyze > Inspect Code...

2) In Inspection region, click on 'change inspections' button.

3) Click "add" and make your inspections profile.

4) Choose all required inspections what you need.

5) Click "Apply" and "ok".

Run CheckStyle-IDEA

1) Open Analyze>Inspect code...

2) Choose inspection scope and inspection profile and than click "ok".

3) For inspection current file open necessary file in file editor.

4) Open Analyze>Inspect code... and choose "Current file".

5) As result you should have something like this:

Something went wrong with that request. Please try again.