summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-11-16 10:15:37 +0000
committerGitHub <noreply@github.com>2017-11-16 10:15:37 +0000
commitee07be5f59611510ed21880f5d895393e954d418 (patch)
tree3e68d44102882c52d3982d619c647454a01dbf9c
parent71d34fc0c6eba0935b97a8d9dc5fd29c432be452 (diff)
parent7565a45b6f9ce4528a639065c4dc32874b0c147a (diff)
downloadale-ee07be5f59611510ed21880f5d895393e954d418.zip
Merge pull request #1135 from aurieh/master
Capture error codes for checkmake
-rw-r--r--ale_linters/make/checkmake.vim4
-rw-r--r--test/handler/test_checkmake_handler.vader3
2 files changed, 4 insertions, 3 deletions
diff --git a/ale_linters/make/checkmake.vim b/ale_linters/make/checkmake.vim
index 3dd8cc91..63c35db3 100644
--- a/ale_linters/make/checkmake.vim
+++ b/ale_linters/make/checkmake.vim
@@ -5,12 +5,12 @@ function! ale_linters#make#checkmake#Handle(buffer, lines) abort
let l:output = []
for l:match in ale#util#GetMatches(a:lines, l:pattern)
- let l:text = l:match[2] . ': ' . l:match[3]
call add(l:output, {
\ 'bufnr': a:buffer,
\ 'lnum': l:match[1] + 0,
\ 'type': 'E',
- \ 'text': l:text,
+ \ 'code': l:match[2],
+ \ 'text': l:match[3],
\})
endfor
return l:output
diff --git a/test/handler/test_checkmake_handler.vader b/test/handler/test_checkmake_handler.vader
index 718c8812..e2e18425 100644
--- a/test/handler/test_checkmake_handler.vader
+++ b/test/handler/test_checkmake_handler.vader
@@ -13,7 +13,8 @@ Execute(Parsing checkmake errors should work):
\ 'bufnr': 42,
\ 'lnum': 1,
\ 'type': 'E',
- \ 'text': 'woops: an error has occurred',
+ \ 'code': 'woops',
+ \ 'text': 'an error has occurred',
\ }
\ ],
\ ale_linters#make#checkmake#Handle(42, [