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

Ruby: rubylint

LCD 47 edited this page May 14, 2015 · 9 revisions

Maintainer: Yorick Peterse [email protected]

Ruby-lint is a linter and static code analysis tool for Ruby. See the project's page for details.

Please note that the gem's name is ruby-lint, while the syntastic checker's name is rubylint.

Note

If the rubylint checker is not enabled automatically by Syntastic, try running ruby-lint --version from the shell. If you get warnings about parser expecting a different version of ruby than you are running, you can either install this wrapper script and point g:syntastic_ruby_rubylint_exec to it, or use rbenv to switch to a different version of ruby:

$ rbenv version
2.1.3 (set by /usr/local/var/rbenv/version)

$ rubylint --verrsion
warning: parser/current is loading parser/ruby21, which recognizes
warning: 2.1.2-compliant syntax, but you are running 2.1.3.
ruby-lint v2.0.4 on ruby 2.1.3 [i486-linux]

$ rbenv shell 2.1.2

$ rubylint --verrsion
ruby-lint v2.0.4 on ruby 2.1.2 [i486-linux]
Clone this wiki locally