Skip to content

Sublime Rubocop Windows Howto

Patrick Derichs edited this page Apr 12, 2015 · 1 revision

The following approach has been tested with Windows 7.

  1. Please make sure rubocop is installed properly: Open a Command Line (Win+R, "cmd") and execute the command rubocop -v. If you see something like 0.29.1 you are fine.
  2. Edit your Sublime Rubocop settings so it is able to call rubocop: Go to "Preferences" -> "Package Settings" -> "RuboCop" -> "Settings - User"
  3. Change the file contents (the important parts are check_for_rbenv, check_for_rvm and rubocop_command):
{
  "check_for_rbenv": false,
  "check_for_rvm": false,
  "mark_issues_in_view": true,
  "rubocop_command": "rubocop",
  "rubocop_config_file": "",
  "show_auto_correct_warning": true
}