diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-15 10:11:32 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-15 10:11:32 +0000 |
commit | ff5c6b050955577322c50ffbae15f722d6d82b18 (patch) | |
tree | 56048bab7c38a370fb160ca6d82b6af0d631a6a5 /ale_linters/ansible/ansible_lint.vim | |
parent | 37f2f7043945b9e3a4567e39bfdd3abce5a87f57 (diff) | |
download | ale-ff5c6b050955577322c50ffbae15f722d6d82b18.zip |
#852 - Capture error codes for ansible-lint
Diffstat (limited to 'ale_linters/ansible/ansible_lint.vim')
-rw-r--r-- | ale_linters/ansible/ansible_lint.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/ansible/ansible_lint.vim b/ale_linters/ansible/ansible_lint.vim index 7d68cde3..27c96320 100644 --- a/ale_linters/ansible/ansible_lint.vim +++ b/ale_linters/ansible/ansible_lint.vim @@ -31,7 +31,8 @@ function! ale_linters#ansible#ansible_lint#Handle(buffer, lines) abort call add(l:output, { \ 'lnum': l:match[2] + 0, \ 'col': l:match[3] + 0, - \ 'text': l:code . ': ' . l:match[5], + \ 'text': l:match[5], + \ 'code': l:code, \ 'type': l:code[:0] is# 'E' ? 'E' : 'W', \}) endif |