Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmeeus committed Oct 20, 2017
1 parent c41cf2a commit 2d521f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter
### Linter installation
Before using this plugin, you must ensure that `yamllint` is installed on your system. To install `yamllint`, do the following:

1. Install [Python](http://python.org/download/) and [pip](http://www.pip-installer.org/en/latest/installing.html).
1. Install Python3 and pip. Python3 is required by `yamllint`

1. Install `yamllint` by typing the following in a terminal:
```
[sudo] pip install yamllint
[sudo] pip3 install yamllint
```


**Note:** This plugin requires `yamllint` __version__ or later.
**Note:** This plugin requires `yamllint` 1.9 or later.

### Linter configuration
In order for `yamllint` 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.
Expand Down
6 changes: 2 additions & 4 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by thomas
# Written by Thomas Meeus
# Copyright (c) 2017 Thomas Meeus <[email protected]>
#
# License: MIT
Expand All @@ -17,16 +17,14 @@ class Yamllint(PythonLinter):
"""Provides an interface to yamllint."""

syntax = ('yml', 'yaml')
cmd = ('yamllint@python', '-f', 'parsable')
cmd = ('yamllint@python3', '-f', 'parsable', '*')
executable = None
version_args = '--version'
version_re = r'(?P<version>\d+\.\d+\.\d+)'
version_requirement = '>= 1.9'
regex = (
r'^.+?:(?P<line>\d+):(?P<col>\d+): \[((?P<warning>warning)|(?P<error>error))\] (?P<message>.+)'
)
multiline = True
line_col_base = (1, 1)
tempfile_suffix = '-'
error_stream = util.STREAM_STDOUT
word_re = r'^(".*?"|[-\w]+)'
Expand Down
2 changes: 2 additions & 0 deletions messages/install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ Before this plugin will activate, you *must*
follow the installation instructions here:

https://github.com/thomasmeeus/SublimeLinter-contrib-yamllint

Also make sure to install `yamllint` with `Python3`

0 comments on commit 2d521f2

Please sign in to comment.