Skip to content

Commit f8789b8

Browse files
committed
clean up things that don't work in SL4
1 parent afc40bd commit f8789b8

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

linter.py

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
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-
141
from SublimeLinter.lint import Linter, util
152

163

174
class 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
"""

0 commit comments

Comments
 (0)