File tree Expand file tree Collapse file tree 2 files changed +2
-29
lines changed Expand file tree Collapse file tree 2 files changed +2
-29
lines changed Original file line number Diff line number Diff line change 11language : python
22python :
3- - " 3.3"
4- # command to install dependencies
3+ - " 3.6"
54install :
65 - pip install flake8
7- - pip install pydocstyle
8- # command to run tests
96script :
107 - 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-
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,12 @@ 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 = {
19+ 'selector' : 'source.css' ,
4120 '--errors=,' : '' ,
4221 '--warnings=,' : '' ,
4322 '--ignore=,' : ''
4423 }
45- inline_overrides = ('errors' , 'warnings' , 'ignore' )
46- comment_re = r'\s*/\*'
4724
4825 def split_match (self , match ):
4926 """
You can’t perform that action at this time.
0 commit comments