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
LCD 47 edited this page Jun 12, 2016
·
14 revisions
This file exists only as a historic reference. Documentation for syntastic
checkers is now included in the manual, please see :help syntastic-checkers
in Vim.
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-6.10.1-all.jar`)
- CLASSPATH to use. Allows for multiple files.
- g:syntastic_java_checkstyle_conf_file (string; default: `sun_checks.xml`)
- path to the configuration file for the
-c
option.
- The checker was tested with checkstyle version 5.5. If you're using it with version 5.6 or later 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. - You probably want to download the "fat jar"
checkstyle-*-all.jar
and pointg:syntastic_java_checkstyle_classpath
to it. Current builds at Maven Central do not package checkstyles with its dependencies.g:syntastic_java_checkstyle_classpath
accepts multiple files if you want to include the checkstyle jar and all of its dependencies.