From 246ceb4eb8c04a2577d2db9b5f7f24c12a6fd186 Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Tue, 27 Mar 2018 18:34:19 +0200 Subject: [PATCH 1/6] fix #22 don't lint style attributes --- linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linter.py b/linter.py index da550e3..83269eb 100644 --- a/linter.py +++ b/linter.py @@ -16,7 +16,7 @@ class CSSLint(Linter): error_stream = util.STREAM_STDOUT tempfile_suffix = 'css' defaults = { - 'selector': 'source.css', + 'selector': 'source.css - meta.attribute-with-value', '--errors=,': '', '--warnings=,': '', '--ignore=,': '' From d122a899cbac836a0cfbf887cd78d468374a6f73 Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Mon, 2 Apr 2018 17:31:26 +0200 Subject: [PATCH 2/6] update urls --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2142b44..8cf7f0c 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,11 @@ Before installing this plugin, you must ensure that `csslint` (version 0.10.0 or 1. If you are using `nvm` and `zsh`, ensure that the line to load `nvm` is in `.zshenv` and not `.zshrc`. -In order for `csslint` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover [troubleshooting PATH configuration](http://sublimelinter.readthedocs.io/en/latest/troubleshooting.html#finding-a-linter-executable). +In order for `csslint` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover [troubleshooting PATH configuration](http://sublimelinter.com/en/latest/troubleshooting.html#finding-a-linter-executable). ## Settings -- SublimeLinter settings: http://sublimelinter.readthedocs.org/en/latest/settings.html -- Linter settings: http://sublimelinter.readthedocs.org/en/latest/linter_settings.html +- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html +- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html Additional SublimeLinter-csslint settings: From 0aabb8b3c992137f33d8ae026529e5ba39ae0503 Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Mon, 2 Apr 2018 17:55:23 +0200 Subject: [PATCH 3/6] update readme --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8cf7f0c..3969813 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ SublimeLinter-csslint [![Build Status](https://travis-ci.org/SublimeLinter/SublimeLinter-csslint.svg?branch=master)](https://travis-ci.org/SublimeLinter/SublimeLinter-csslint) -This linter plugin for [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter) provides an interface to [csslint](https://github.com/stubbornella/csslint/wiki). It will be used with files that have the “CSS” syntax, or within `` tags in HTML files. +This linter plugin for [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter) provides an interface to [csslint](https://github.com/stubbornella/csslint/wiki). +It will be used with files that have the "CSS" syntax, or within `` tags in HTML files. ## Installation @@ -11,7 +12,8 @@ SublimeLinter must be installed in order to use this plugin. Please use [Package Control](https://packagecontrol.io) to install the linter plugin. -Before installing this plugin, you must ensure that `csslint` (version 0.10.0 or later) is installed on your system. To install `csslint`, do the following: +Before installing this plugin, ensure that `csslint` (version 0.10.0 or later) is installed on your system. +To install `csslint`, do the following: 1. Install [Node.js](http://nodejs.org) (and [npm](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) on Linux). @@ -22,7 +24,8 @@ Before installing this plugin, you must ensure that `csslint` (version 0.10.0 or 1. If you are using `nvm` and `zsh`, ensure that the line to load `nvm` is in `.zshenv` and not `.zshrc`. -In order for `csslint` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover [troubleshooting PATH configuration](http://sublimelinter.com/en/latest/troubleshooting.html#finding-a-linter-executable). +Please make sure that the path to `csslint` is available to SublimeLinter. +The docs cover [troubleshooting PATH configuration](http://sublimelinter.com/en/latest/troubleshooting.html#finding-a-linter-executable). ## Settings - SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html From dcbc6c0579871ce3f9b813b0d92f3b7642c750a1 Mon Sep 17 00:00:00 2001 From: herr kaste Date: Wed, 5 May 2021 11:08:00 +0200 Subject: [PATCH 4/6] Add `${temp_file}` marker to `cmd` Implicit adding of the `${temp_file}` by the framework has been deprecated and SublimeLinter also logs about it. --- linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linter.py b/linter.py index 83269eb..a04e5ef 100644 --- a/linter.py +++ b/linter.py @@ -2,7 +2,7 @@ class CSSLint(Linter): - cmd = 'csslint --format=compact' + cmd = 'csslint --format=compact ${temp_file}' regex = r'''(?xi) ^.+:\s* # filename From 2f9e8ebccfe5057349e8d563b774481a22261f22 Mon Sep 17 00:00:00 2001 From: herr kaste Date: Mon, 17 May 2021 15:37:21 +0200 Subject: [PATCH 5/6] Add `${args}` marker to cmd --- linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linter.py b/linter.py index a04e5ef..d69a34b 100644 --- a/linter.py +++ b/linter.py @@ -2,7 +2,7 @@ class CSSLint(Linter): - cmd = 'csslint --format=compact ${temp_file}' + cmd = 'csslint --format=compact ${args} ${temp_file}' regex = r'''(?xi) ^.+:\s* # filename From a7da51db349c20bf539092e277ccedccd29b70e8 Mon Sep 17 00:00:00 2001 From: herr kaste Date: Thu, 24 Apr 2025 12:06:05 +0200 Subject: [PATCH 6/6] Switch to py38 --- .python-version | 1 + 1 file changed, 1 insertion(+) create mode 100644 .python-version diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..cc1923a --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.8