diff --git a/linter.py b/linter.py index 2446a95..938dbfc 100644 --- a/linter.py +++ b/linter.py @@ -4,8 +4,10 @@ class Phpmd(Linter): cmd = ('phpmd', '${temp_file}', 'text') regex = ( - r'(?P.+):(?P\d+)' - r'\s*(?P.+)$' + # 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\d+)\s*(?P.+)$' ) on_stderr = None # handle stderr via regex default_type = WARNING