File tree 2 files changed +2
-29
lines changed
2 files changed +2
-29
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
2
python :
3
- - " 3.3"
4
- # command to install dependencies
3
+ - " 3.6"
5
4
install :
6
5
- pip install flake8
7
- - pip install pydocstyle
8
- # command to run tests
9
6
script :
10
7
- flake8 . --max-line-length=120
11
- - pydocstyle . --add-ignore=D202
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,12 @@ 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 = {
19
+ 'selector' : 'source.css' ,
41
20
'--errors=,' : '' ,
42
21
'--warnings=,' : '' ,
43
22
'--ignore=,' : ''
44
23
}
45
- inline_overrides = ('errors' , 'warnings' , 'ignore' )
46
- comment_re = r'\s*/\*'
47
24
48
25
def split_match (self , match ):
49
26
"""
You can’t perform that action at this time.
0 commit comments