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
-
14
1
from SublimeLinter .lint import Linter , util
15
2
16
3
17
4
class CSSLint (Linter ):
18
- """Provides an interface to the csslint executable."""
19
-
20
- syntax = ('css' , 'css3' , 'html' )
21
5
cmd = 'csslint --format=compact'
22
- version_args = '--version'
23
- version_re = r'v(?P<version>\d+\.\d+\.\d+)'
24
- version_requirement = '>= 0.10'
25
6
regex = r'''(?xi)
26
7
^.+:\s* # filename
27
8
@@ -34,16 +15,9 @@ class CSSLint(Linter):
34
15
word_re = r'^([#\.]?[-\w]+)'
35
16
error_stream = util .STREAM_STDOUT
36
17
tempfile_suffix = 'css'
37
- selectors = {
38
- 'html' : 'source.css.embedded.html'
39
- }
40
18
defaults = {
41
- '--errors=,' : '' ,
42
- '--warnings=,' : '' ,
43
- '--ignore=,' : ''
19
+ 'selector' : 'source.css'
44
20
}
45
- inline_overrides = ('errors' , 'warnings' , 'ignore' )
46
- comment_re = r'\s*/\*'
47
21
48
22
def split_match (self , match ):
49
23
"""
You can’t perform that action at this time.
0 commit comments