I have Sublime Text 3 working with rubocop and sublimelinter. However, when I enable rubocop-rspec:
# .rubocop.yml
require: rubocop-rspec
rubocop fails on the command line in terminal unless I run it with:
bundle exec rubocop
However, I'm not able to get rubocop working nicely with rubocop-rspec in Sublime, and I see this in my Sublime console with debug enabled:
SublimeLinter: rubocop output:
/Users/sean/.rbenv/versions/2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- /Users/sean/Dropbox/Sean/Sites/tovgdb/rubocop-rspec (LoadError)
Is there a way to make sublimelinter put bundle exec
before the rubocop command?