Skip to content

Commit

Permalink
Updated linter class from template
Browse files Browse the repository at this point in the history
  • Loading branch information
raddessi committed Nov 20, 2018
1 parent 6759a73 commit a518e42
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions linter.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from SublimeLinter.lint import Linter # or NodeLinter, PythonLinter, ComposerLinter, RubyLinter
from SublimeLinter.lint import PythonLinter


class __class__(Linter):
cmd = '__cmd__'
regex = r''
multiline = False
class Darglint(PythonLinter):
cmd = ('darglint', '${args}', '-')
regex = r'^.+?:(?P<function>.+):(?P<line>\d+): (?:(?P<interface>I\d+)|(?P<style>S\d+)): (?P<message>.+)'
multiline = True
defaults = {
'selector': 'source.python'
'selector': 'source.python',
}

0 comments on commit a518e42

Please sign in to comment.