-
Notifications
You must be signed in to change notification settings - Fork 5
/
linter.py
38 lines (32 loc) · 874 Bytes
/
linter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jordan Suchow
# Copyright (c) 2015 Jordan Suchow
#
#
"""This module exports the Proselint plugin class."""
from SublimeLinter.lint import Linter
class Proselint(Linter):
"""Provides an interface to proselint."""
syntax = ('*')
cmd = 'proselint'
executable = None
version_args = '--version'
version_re = r'(?P<version>\d+\.\d+\.\d+)'
version_requirement = '>= 0.0.0'
regex = (
r'^.+?:(?P<line>\d+):(?P<col>\d+): \S* (?P<message>.+)'
)
multiline = True
line_col_base = (1, 1)
tempfile_suffix = 'pltmp'
selectors = {
'*': 'text.html.markdown, text.plain, text.tex.latex, comment'
}
word_re = None
defaults = {}
inline_settings = None
inline_overrides = None
comment_re = None