Member-only story
Rubocop in Sublime Text 3 with rbenv
2 min readOct 14, 2018
Quick guide to have your ruby environment set up in Sublime Text 3 with rubocop and rbenv. It was quite tricky for me at first. Hope it helps.
Install the Rubocop package
Open the Package Installer using the cmd+P
dialog:
Search for the RuboCop package and install it:
Go to Sublime Text > Preferences > Pkg Settings > Rubocop > User Settings:
And add the following:
{
“mark_issues_in_view”: true,
“check_for_rvm”: false,
“check_for_rbenv”: true,
“show_auto_correct_warning”: false,
“rbenv_path”: “/usr/local/Cellar/rbenv/1.1.1/bin/rbenv”,
}
Try it out
Now, if you open a ruby file, you should see something like: