This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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.
- 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.
- 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.
- 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.
- Add
let g:syntastic_java_checkstyle_post_args = ['-p', 'path/to/checkstyle.properties']
to your configuration if you need to use a property file. - 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.