Skip to content

Commit

Permalink
fixing python convention code errors
Browse files Browse the repository at this point in the history
  • Loading branch information
javierfernandes committed May 3, 2015
1 parent c3d2664 commit 8464b6d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions SublimeLinter-contrib-wchecker/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class Wchecker(Linter):

"""Provides an interface to Wollok wchecker."""

syntax = ['wollok']
extensions = ['wlk', 'wpgm', 'wtest']

Expand All @@ -27,14 +27,14 @@ class Wchecker(Linter):
version_args = '--version'
version_re = r'\bv(?P<version>\d+\.\d+\.\d+)'
version_requirement = '>= 0.0.0'

regex = (
r'^(?P<file>.+?):(?P<line>\d+):(?P<col>\d+) '
r'(?:((?P<error>ERROR)|(?P<warning>WARNING))) '
r'(?P<message>.+)'
)
multiline = False

line_col_base = (1, 1)
tempfile_suffix = None
error_stream = util.STREAM_BOTH
Expand All @@ -43,20 +43,19 @@ class Wchecker(Linter):
defaults = {}
inline_settings = None
inline_overrides = None

comment_re = r'\s*/[/*]'

comment_re = r'\s*/[/*]'

def split_match(self, match):
"""
Return the components of the match.
We override this because included header files can cause linter errors,
and we only want errors from the linted file.
"""

if match:
if match.group('file') != self.filename:
match = None
if match.group('file') != self.filename:
match = None

return super().split_match(match)

0 comments on commit 8464b6d

Please sign in to comment.