From ff5c6b050955577322c50ffbae15f722d6d82b18 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 15 Nov 2017 10:11:32 +0000 Subject: #852 - Capture error codes for ansible-lint --- ale_linters/ansible/ansible_lint.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ale_linters/ansible/ansible_lint.vim') 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 -- cgit v1.2.3