File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,12 @@ class HtmlTidy(Linter):
18
18
"""Provides an interface to tidy."""
19
19
20
20
syntax = 'html'
21
- executable = 'tidy'
22
- version_args = '--version'
23
- version_re = r'(?P<version>\d+\.\d+\.\d+)'
24
- version_requirement = '>= 4.9'
25
21
regex = r'^line (?P<line>\d+) column (?P<col>\d+) - (?:(?P<error>Error)|(?P<warning>Warning)): (?P<message>.+)'
26
22
error_stream = util .STREAM_STDERR
27
23
28
24
def cmd (self ):
29
25
"""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