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

Ruby: rubocop

LCD 47 edited this page Jul 29, 2013 · 23 revisions

Maintainer: Recai Oktaş [email protected]

Rubocop is a style checker for Ruby. See the project's page for details.

Notes:

  1. Most issues returned by rubocop are warnings, so for best results you should set g:syntastic_quiet_warnings to 0 in your vimrc.
  2. Only rubocop versions 0.9.0 and later are supported.
  3. Rubocop uses locales to figgure out what to do with non-ASCII characters in input files. On the other hand, syntastic resets locales when running the checkers. As a work-around, if you need to check files containing non-ASCII characters, you might want to add something like this to your vimrc:
let g:syntastic_ruby_rubocop_exe = "LC_ALL=en_US.UTF-8 rubocop"

Please also note that syntastic can only parse English messages from rubocop regardless of charset, so only English locales are supported.

Clone this wiki locally