From f8789b8de2a89d3a00fb1ba92ec6eed6a6f08088 Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Sun, 25 Mar 2018 20:01:49 +0200 Subject: [PATCH 1/3] clean up things that don't work in SL4 --- linter.py | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/linter.py b/linter.py index 5e88b93..84e4135 100644 --- a/linter.py +++ b/linter.py @@ -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\d+\.\d+\.\d+)' - version_requirement = '>= 0.10' regex = r'''(?xi) ^.+:\s* # filename @@ -34,16 +15,9 @@ class CSSLint(Linter): word_re = r'^([#\.]?[-\w]+)' error_stream = util.STREAM_STDOUT tempfile_suffix = 'css' - selectors = { - 'html': 'source.css.embedded.html' - } defaults = { - '--errors=,': '', - '--warnings=,': '', - '--ignore=,': '' + 'selector': 'source.css' } - inline_overrides = ('errors', 'warnings', 'ignore') - comment_re = r'\s*/\*' def split_match(self, match): """ From c8001bac9e08ac8124090274354c2fa479d571d1 Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Sun, 25 Mar 2018 20:02:56 +0200 Subject: [PATCH 2/3] simplify travis test --- .travis.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index fb62dc4..000f751 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 From 08ebf785ef1d38fbb3238dddc159ec811bb67e99 Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Mon, 26 Mar 2018 22:15:47 +0200 Subject: [PATCH 3/3] don't break the config --- linter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linter.py b/linter.py index 84e4135..da550e3 100644 --- a/linter.py +++ b/linter.py @@ -16,7 +16,10 @@ class CSSLint(Linter): error_stream = util.STREAM_STDOUT tempfile_suffix = 'css' defaults = { - 'selector': 'source.css' + 'selector': 'source.css', + '--errors=,': '', + '--warnings=,': '', + '--ignore=,': '' } def split_match(self, match):