Skip to content

Commit c750da7

Browse files
authored
Merge pull request #21 from SublimeLinter/sl4-cleanup
clean up things that don't work in SL4
2 parents afc40bd + 08ebf78 commit c750da7

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed

.travis.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
language: python
22
python:
3-
- "3.3"
4-
# command to install dependencies
3+
- "3.6"
54
install:
65
- pip install flake8
7-
- pip install pydocstyle
8-
# command to run tests
96
script:
107
- flake8 . --max-line-length=120
11-
- pydocstyle . --add-ignore=D202

linter.py

+1-24
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,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
"""

0 commit comments

Comments
 (0)