File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change 1- #
2- # linter.py
3- # Linter for SublimeLinter3, a code checking framework for Sublime Text 3
4- #
5- # Written by Aparajita Fishman
6- # Copyright (c) 2015-2016 The SublimeLinter Community
7- # Copyright (c) 2013-2014 Aparajita Fishman
8- #
9- # License: MIT
10- #
11-
12- """This module exports the CSSLint plugin linter class."""
13-
141from SublimeLinter .lint import Linter , util
152
163
174class CSSLint (Linter ):
18- """Provides an interface to the csslint executable."""
19-
20- syntax = ('css' , 'css3' , 'html' )
215 cmd = 'csslint --format=compact'
22- version_args = '--version'
23- version_re = r'v(?P<version>\d+\.\d+\.\d+)'
24- version_requirement = '>= 0.10'
256 regex = r'''(?xi)
267 ^.+:\s* # filename
278
@@ -34,16 +15,9 @@ class CSSLint(Linter):
3415 word_re = r'^([#\.]?[-\w]+)'
3516 error_stream = util .STREAM_STDOUT
3617 tempfile_suffix = 'css'
37- selectors = {
38- 'html' : 'source.css.embedded.html'
39- }
4018 defaults = {
41- '--errors=,' : '' ,
42- '--warnings=,' : '' ,
43- '--ignore=,' : ''
19+ 'selector' : 'source.css'
4420 }
45- inline_overrides = ('errors' , 'warnings' , 'ignore' )
46- comment_re = r'\s*/\*'
4721
4822 def split_match (self , match ):
4923 """
You can’t perform that action at this time.
0 commit comments