Skip to content

Instantly share code, notes, and snippets.

@PhyrexTsai
Last active May 16, 2016 08:25
Show Gist options
  • Save PhyrexTsai/de94131b07f21809d3c19791fb809489 to your computer and use it in GitHub Desktop.
Save PhyrexTsai/de94131b07f21809d3c19791fb809489 to your computer and use it in GitHub Desktop.

##Checkstyle

Introduce

It is a Intellij plugin, helps you to check your code, import, javadoc etc.
[Checkstyle Intellij plugin] (https://github.com/jshiell/checkstyle-idea)

  • Community Edition (14.1.5)
  • Community Edition (15.0.6)
  • Community Edition (2016.1)
  • Ultimate Edition (14.1.5)
  • Ultimate Edition (15.0.6)
  • Ultimate Edition (2016.1)

Install

Under Intellij Preferences->Plugin->Browse repositories...
Search keyword : Checkstyle-IDEA
Install it and restart Intellij.

Setting

Under Intellij Preferences->Other Setting->Checksytle
Default checkstyle sun_checks.xml

Other

Avoid using unused import.
Intellij Preferences->Editor->Inspections
Find out Java->Imports->Unused import
Just set this [+] and Severity set Error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment