Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Java: checkstyle

Kevin O'Neal edited this page Sep 10, 2015 · 14 revisions

Maintainer: Dmitry Geurkov [email protected]

Checkstyle is a style checker for Java. See the project's page for details.

Checker options

g:syntastic_java_checkstyle_classpath (string; default: `checkstyle-5.5-all.jar`)
path to checkstyle-*-all.jar
g:syntastic_java_checkstyle_conf_file (string; default: `sun_checks.xml`)
path to the configuration file to use.

Notes

  1. The checker was tested with checkstyle version 5.5. If you're using it with version 5.6 you should remove DoubleCheckedLocking from your configuration file.
  2. At the time of this writing, the checkstyle checker doesn't distinguish between error severity levels. All messages are treated as errors, regardless of their severity defined in the checkstyle config file.
  3. Add let g:syntastic_java_checkstyle_post_args = ['-p', 'path/to/checkstyle.properties'] to your configuration if you need to use a property file.
  4. Note that jar reference is to that of the fat jar. Where 'all' mean that it includes its require dependencies, checkstyle-5.5-all.jar. Current builds (see maven central) do not package checkstyles with its dependencies.
Clone this wiki locally