Skip to content

Commit

Permalink
Use the rubocop bin directly (#65)
Browse files Browse the repository at this point in the history
Use the rubocop bin directly
  • Loading branch information
kaste authored May 27, 2019
2 parents 7a06c4a + 379680b commit 621d9fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linter.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
from SublimeLinter.lint import RubyLinter
from SublimeLinter.lint import Linter


class Rubocop(RubyLinter):
class Rubocop(Linter):
defaults = {
'selector': 'source.ruby - text.html - text.haml'
}
Expand All @@ -17,7 +17,7 @@ def cmd(self):

settings = self.get_view_settings()

command = ['ruby', '-S']
command = []

if settings.get('use_bundle_exec', False):
command.extend(['bundle', 'exec'])
Expand Down

0 comments on commit 621d9fa

Please sign in to comment.