Details about your config e.g. do you use rbenv, rvm or your_own_command to run rubocop?:
Using rvm, includin rvm-auto-ruby
Problem & Fix:
When using SublimeLinter-rubocop the Linter always use 'ruby' to execute rubocop, whereas SublimeLinter-RubyLinter has detected rvm-auto-ruby as executable.
# The problematic line is (in linter.rb):
class RuboCop(RubyLinter):
...
def cmd(self):
...
command = ['ruby', '-S', 'rubocop', '--format', 'emacs'] #Here ... ruby is hardcoded.
# better would be:
command = self.executable_path + ['-S', 'rubocop', '--format', 'emacs']
General Infos
Problem & Fix:
When using SublimeLinter-rubocop the Linter always use 'ruby' to execute rubocop, whereas SublimeLinter-RubyLinter has detected
rvm-auto-ruby
as executable.With kind regards, Raimund