Skip to content

Commit

Permalink
Merge pull request #52 from martinbohman/master
Browse files Browse the repository at this point in the history
Change deprecated executable_path call
  • Loading branch information
kaste authored Mar 23, 2018
2 parents d3c5c80 + bdc992e commit 869e257
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class Rubocop(RubyLinter):
'ruby'
)
cmd = None
executable = 'ruby'
version_args = '-S rubocop --version'
version_re = r'(?P<version>\d+\.\d+\.\d+)'
version_requirement = '>= 0.34.0'
Expand All @@ -45,8 +44,6 @@ def cmd(self):
settings = self.get_view_settings()

command = ['ruby', '-S']
if self.executable_path:
command = self.executable_path + ['-S']

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

0 comments on commit 869e257

Please sign in to comment.