Skip to content

Commit

Permalink
Merge pull request #13 from Edditoria/master
Browse files Browse the repository at this point in the history
Update to Catch Up The Sublime Linter API
  • Loading branch information
Edditoria authored Mar 30, 2020
2 parents fd9072d + e566171 commit 20415b1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@

"""This module exports the PugLint plugin class."""

from SublimeLinter.lint import NodeLinter, util, highlight
from SublimeLinter.lint import NodeLinter, WARNING


class PugLint(NodeLinter):
"""Provides an interface to pug-lint."""

cmd = 'pug-lint @ *'
cmd = 'pug-lint ${temp_file} ${args}'
regex = r'^.+?:(?P<line>\d+)(:(?P<col>\d+) | )(?P<message>.+)'
multiline = False
on_stderr = None
tempfile_suffix = 'pug'
error_stream = util.STREAM_BOTH
defaults = {
'selector': 'text.pug, source.pypug, text.jade',
'--reporter=': 'inline'
'--reporter': 'inline'
}
default_type = highlight.WARNING
default_type = WARNING

0 comments on commit 20415b1

Please sign in to comment.