Skip to content

Commit

Permalink
Developer Guide: Clarify instructions for setting up Checkstyle-IDEA
Browse files Browse the repository at this point in the history
  • Loading branch information
yamgent committed Aug 3, 2017
1 parent 2084731 commit eec2a5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/DeveloperGuide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,18 @@ Restart the IDE to complete the installation.
=== Configuring Checkstyle-IDEA

. Click `File` > `Settings...` > `Other Settings` > `Checkstyle`
. Set `Scan Scope` to `Only Java sources (including tests)`, so that the plugin will run checkstyle for our test source codes as well
. Ensure that the `Checkstyle version` is set to `8.1`. This is the same version that we are using inside Gradle, so that you won't get any errors due to version incompatibility
+
image::checkstyle-idea-scan-scope.png[width="500"]
. Click the plus sign under `Configuration File`
. Enter an arbitrary description e.g. addressbook
. Select `Use a local Checkstyle file`
. Use the checkstyle configuration file found at `config/checkstyle/checkstyle.xml`
. Click `Next` > `Finish`
. Mark `Active` for the newly imported check configuration
+
image::checkstyle-idea-configuration.png[width="700"]
. Click `OK`

=== Updating documentation
Expand Down
Binary file added docs/images/checkstyle-idea-configuration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/checkstyle-idea-scan-scope.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eec2a5f

Please sign in to comment.