Skip to content

Commit

Permalink
Merge pull request #21 from SublimeLinter/sl4-cleanup
Browse files Browse the repository at this point in the history
clean up things that don't work in SL4
  • Loading branch information
braver authored Mar 27, 2018
2 parents afc40bd + 08ebf78 commit c750da7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
language: python
python:
- "3.3"
# command to install dependencies
- "3.6"
install:
- pip install flake8
- pip install pydocstyle
# command to run tests
script:
- flake8 . --max-line-length=120
- pydocstyle . --add-ignore=D202
25 changes: 1 addition & 24 deletions linter.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,8 @@
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Aparajita Fishman
# Copyright (c) 2015-2016 The SublimeLinter Community
# Copyright (c) 2013-2014 Aparajita Fishman
#
# License: MIT
#

"""This module exports the CSSLint plugin linter class."""

from SublimeLinter.lint import Linter, util


class CSSLint(Linter):
"""Provides an interface to the csslint executable."""

syntax = ('css', 'css3', 'html')
cmd = 'csslint --format=compact'
version_args = '--version'
version_re = r'v(?P<version>\d+\.\d+\.\d+)'
version_requirement = '>= 0.10'
regex = r'''(?xi)
^.+:\s* # filename
Expand All @@ -34,16 +15,12 @@ class CSSLint(Linter):
word_re = r'^([#\.]?[-\w]+)'
error_stream = util.STREAM_STDOUT
tempfile_suffix = 'css'
selectors = {
'html': 'source.css.embedded.html'
}
defaults = {
'selector': 'source.css',
'--errors=,': '',
'--warnings=,': '',
'--ignore=,': ''
}
inline_overrides = ('errors', 'warnings', 'ignore')
comment_re = r'\s*/\*'

def split_match(self, match):
"""
Expand Down

0 comments on commit c750da7

Please sign in to comment.