File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff 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' ]
You can’t perform that action at this time.
0 commit comments