Skip to content

Commit

Permalink
Merge pull request #22 from SublimeLinter/kaste-patch-2
Browse files Browse the repository at this point in the history
Do not capture 'filename'
  • Loading branch information
kaste authored Apr 13, 2019
2 parents d17a0fa + adbe7f8 commit b7b2d79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
class Phpmd(Linter):
cmd = ('phpmd', '${temp_file}', 'text')
regex = (
r'(?P<filename>.+):(?P<line>\d+)'
r'\s*(?P<message>.+)$'
# For now, do *NOT* capture 'filename' since phpmd reports 'real'
# paths, and Sublime and SL cannot map such paths to the original
# `view.file_name()`.
r'(.+):(?P<line>\d+)\s*(?P<message>.+)$'
)
on_stderr = None # handle stderr via regex
default_type = WARNING
Expand Down

0 comments on commit b7b2d79

Please sign in to comment.