Member-only story

Rubocop in Sublime Text 3 with rbenv

Flavio Wuensche
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.

Image result for rubocop

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:

--

--

Flavio Wuensche
Flavio Wuensche

Written by Flavio Wuensche

Building an open-source tool to keep track of technical debt on large codebases 🍒 cherrypush.com

Responses (1)