Skip to content

Commit

Permalink
Merge pull request #57 from alexkuz/patch-1
Browse files Browse the repository at this point in the history
Support SublimeLinter v4.0.0
  • Loading branch information
ckaznocha authored Feb 2, 2018
2 parents 4aace46 + 3283df2 commit c8ceaf3
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
Expand Up @@ -76,11 +76,11 @@ def cmd(self):
has started, checks are very fast.
"""
command = ['flow']
merged_settings = self.get_merged_settings()
view_settings = self.get_view_settings()

command.extend(['check-contents', '@'])

if merged_settings['show-all-errors']:
if view_settings['show-all-errors']:
command.append('--show-all-errors')

command.append('--json') # need this for simpler error handling
Expand All @@ -95,7 +95,7 @@ def context_sensitive_executable_path(self, cmd):
Otherwise falls back to NodeLinter for finding the executable.
"""
path = self.get_merged_settings()['flow-bin']
path = self.get_view_settings()['flow-bin']
return (False, path) if path is not None \
else super(Flow, self).context_sensitive_executable_path(cmd)

Expand Down

0 comments on commit c8ceaf3

Please sign in to comment.