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

Checkstyle checker: support classpath file #1559

Conversation

Scuilion
Copy link

Add the ability to externalize the checkstyle classpath. Similar to how it is done in javac.

@lcd047
Copy link
Collaborator

lcd047 commented Sep 22, 2015

Please don't do that. The javac checker is a mess that needs to be simplified, rather than imitated everywhere else.

The syntastic way to deal with this kind of problems is to delegate as much as possible to the OS, by using environment variables and wrapper scripts. If you set g:syntastic_java_checkstyle_classpath to an empty string you can manage classpath externally, by setting the CLASSPATH environment variable.

The Vim way to deal with this kind of problems is to use autocmds. If you set autocmds for your projects you can update g:syntastic_java_checkstyle_classpath automatically. You can source files from autocmds.

The IDE-minded way to deal with this kind of problems is to install a plugin that allows you to have per-project settings. There are several such plugins around.

The Java way to deal with this kind of problems is to install Eclim and use that instead of syntastic. There is no way syntastic will ever compete to Eclipse.

Sorry, but no.

@lcd047 lcd047 closed this Sep 22, 2015
@wsdjeg
Copy link
Contributor

wsdjeg commented Nov 5, 2015

hi @Scuilion same issue as yours

@lcd047
Copy link
Collaborator

lcd047 commented Nov 5, 2015

@wsdjeg Syntastic supports external checkers. One way to do what you want is to copy the existing checker elsewhere, apply the patch in the PR, and use it as an external checker. Another way is to have more people express interest in this, and persuade me to merge the PR. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants