Skip to content

Commit 52cd6f1

Browse files
committed
Added version requirement.
1 parent 60b995a commit 52cd6f1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Before installing this plugin, you must ensure that `csslint` is installed on yo
1818

1919
1. If you are using `nvm` and `zsh`, ensure that the line to load `nvm` is in `.zshenv` and not `.zshrc`.
2020

21+
**Note:** This plugin requires `csslint` 0.10.0 or later.
22+
2123
### Linter configuration
2224
In order for `csslint` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. Before going any further, please read and follow the steps in [“Finding a linter executable”](http://sublimelinter.readthedocs.org/en/latest/troubleshooting.html#finding-a-linter-executable) through “Validating your PATH” in the documentation.
2325

linter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ class CSSLint(Linter):
1919

2020
syntax = ('css', 'html')
2121
cmd = 'csslint --format=compact'
22+
version_args = '--version'
23+
version_re = r'v(?P<version>\d+\.\d+\.\d+)'
24+
version_requirement = '>= 0.10'
2225
regex = r'''(?xi)
2326
^.+:\s* # filename
2427

0 commit comments

Comments
 (0)