Atom-Editor: Don't work rubocop with atom
It seems that you're using rvm to manage your environment. What i did to get it to work was follow the instructions on their repo: https://github.com/AtomLinter/linter-rubocop#settings
# make sure I'm in the global gemset
$ rvm gemset use global
# install the gem
$ gem install rubocop
configure atom to use the global. Edit your atom's config file (config.cson
) and add
*:
"linter-rubocop":
executablePath: "~/.rvm/gems/ruby-2.3.1@global/wrappers"
"linter-ui-default": {}
Note: make sure that the ruby version is the one you're using.