Skip to content

Commit 637710d

Browse files
authored
Merge pull request #50 from SublimeLinter/fixup-for-sl41
Fixup for SublimeLinter 4
2 parents d777594 + b086c2c commit 637710d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

linter.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,12 @@ class HtmlTidy(Linter):
1818
"""Provides an interface to tidy."""
1919

2020
syntax = 'html'
21-
executable = 'tidy'
22-
version_args = '--version'
23-
version_re = r'(?P<version>\d+\.\d+\.\d+)'
24-
version_requirement = '>= 4.9'
2521
regex = r'^line (?P<line>\d+) column (?P<col>\d+) - (?:(?P<error>Error)|(?P<warning>Warning)): (?P<message>.+)'
2622
error_stream = util.STREAM_STDERR
2723

2824
def cmd(self):
2925
"""Return a tuple with the command line to execute."""
30-
command = [self.executable_path, '-errors', '-quiet', '-utf8']
31-
if Linter.which('tidy5'):
32-
command[0] = Linter.which('tidy5')
33-
else:
34-
command[0] = Linter.which('tidy')
35-
return command
26+
# Must return either a full path to a binary or an informal name
27+
# of an executable.
28+
executable = self.which('tidy5') or 'tidy'
29+
return [executable, '-errors', '-quiet', '-utf8']

0 commit comments

Comments
 (0)