From be9ba4f54a110507cac8923ea3837121e780db82 Mon Sep 17 00:00:00 2001 From: Koen Lageveen Date: Tue, 27 Mar 2018 08:12:11 +0200 Subject: [PATCH] clean up, use selector --- .travis.yml | 6 +----- linter.py | 21 ++++----------------- 2 files changed, 5 insertions(+), 22 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 diff --git a/linter.py b/linter.py index 10c28b1..41211cc 100644 --- a/linter.py +++ b/linter.py @@ -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\d+):.+?: (?P[^\r\n]+)(\r?\n[^\r\n]*\r?\n(?P[^\^]*)\^)?' multiline = True error_stream = util.STREAM_STDERR + defaults = { + 'selector': 'text.xml' + }