diff options
author | w0rp <w0rp@users.noreply.github.com> | 2017-10-26 17:49:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-26 17:49:46 +0100 |
commit | 6ed456f99c46ad6853fdd893344e94060ce9f6c3 (patch) | |
tree | 7d4bc930968ea10715bdf722279ddb7a39a43885 /ale_linters/php | |
parent | f15c8f41279b8b8d9e397e55021d31ca983da3b0 (diff) | |
parent | 40f5e541984f7520aab6f627620ed4823ab8943b (diff) | |
download | ale-6ed456f99c46ad6853fdd893344e94060ce9f6c3.zip |
Merge pull request #1009 from sirbrillig/add/phpcs-include-code-option
phpcs: include sniff code in message
Diffstat (limited to 'ale_linters/php')
-rw-r--r-- | ale_linters/php/phpcs.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ale_linters/php/phpcs.vim b/ale_linters/php/phpcs.vim index ddaf171e..399fbd23 100644 --- a/ale_linters/php/phpcs.vim +++ b/ale_linters/php/phpcs.vim @@ -29,11 +29,12 @@ 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) - let l:text = l:match[4] + let l:code = l:match[5] + let l:text = l:match[4] . ' (' . l:code . ')' let l:type = l:match[3] call add(l:output, { |