-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from SublimeLinter/sl4-cleanup
clean up, use selector
- Loading branch information
Showing
2 changed files
with
5 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,11 @@ | ||
# | ||
# 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) 2014 Aparajita Fishman | ||
# | ||
# License: MIT | ||
# | ||
|
||
"""This module exports the Xmllint plugin class.""" | ||
|
||
from SublimeLinter.lint import Linter, util | ||
|
||
|
||
class Xmllint(Linter): | ||
"""Provides an interface to xmllint.""" | ||
|
||
syntax = 'xml' | ||
cmd = 'xmllint --noout * -' | ||
cmd = 'xmllint --noout ${args} -' | ||
regex = r'^-:(?P<line>\d+):.+?: (?P<message>[^\r\n]+)(\r?\n[^\r\n]*\r?\n(?P<col>[^\^]*)\^)?' | ||
multiline = True | ||
error_stream = util.STREAM_STDERR | ||
defaults = { | ||
'selector': 'text.xml' | ||
} |