summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2020-11-21 15:36:22 +0000
committerGitHub <noreply@github.com>2020-11-21 15:36:22 +0000
commitdf3163223f26830782400c453d387394ef561682 (patch)
treecb258735f44fe35c65dd423f36f64003a4572822 /ale_linters
parent9f2215d69b7c178e4b873d0a7f404962f61e1b77 (diff)
parente08996940468ce90616a9704a439652f1ab73e31 (diff)
downloadale-df3163223f26830782400c453d387394ef561682.zip
Merge pull request #3282 from zanona/master
fix(ale_linters/phpcs): add support for multiline error messages
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/php/phpcs.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/php/phpcs.vim b/ale_linters/php/phpcs.vim
index 11b81e84..c5a3faa9 100644
--- a/ale_linters/php/phpcs.vim
+++ b/ale_linters/php/phpcs.vim
@@ -23,7 +23,7 @@ function! ale_linters#php#phpcs#Handle(buffer, lines) abort
" Matches against lines like the following:
"
" /path/to/some-filename.php:18:3: error - Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)
- let l:pattern = '^.*:\(\d\+\):\(\d\+\): \(.\+\) - \(.\+\) (\(.\+\))$'
+ let l:pattern = '^.*:\(\d\+\):\(\d\+\): \(.\+\) - \(.\+\) (\(.\+\)).*$'
let l:output = []
for l:match in ale#util#GetMatches(a:lines, l:pattern)