-
Notifications
You must be signed in to change notification settings - Fork 39
Sublime Rubocop Windows Howto
Patrick Derichs edited this page Apr 12, 2015
·
1 revision
The following approach has been tested with Windows 7.
- Please make sure rubocop is installed properly: Open a Command Line (Win+R, "cmd") and execute the command
rubocop -v
. If you see something like0.29.1
you are fine. - Edit your Sublime Rubocop settings so it is able to call
rubocop
: Go to "Preferences" -> "Package Settings" -> "RuboCop" -> "Settings - User" - Change the file contents (the important parts are
check_for_rbenv
,check_for_rvm
andrubocop_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
}