#852 Capture error codes for checkmake
This commit is contained in:
parent
1d65e5692f
commit
d585123d64
@ -5,12 +5,12 @@ function! ale_linters#make#checkmake#Handle(buffer, lines) abort
|
|||||||
let l:output = []
|
let l:output = []
|
||||||
|
|
||||||
for l:match in ale#util#GetMatches(a:lines, l:pattern)
|
for l:match in ale#util#GetMatches(a:lines, l:pattern)
|
||||||
let l:text = l:match[2] . ': ' . l:match[3]
|
|
||||||
call add(l:output, {
|
call add(l:output, {
|
||||||
\ 'bufnr': a:buffer,
|
\ 'bufnr': a:buffer,
|
||||||
\ 'lnum': l:match[1] + 0,
|
\ 'lnum': l:match[1] + 0,
|
||||||
\ 'type': 'E',
|
\ 'type': 'E',
|
||||||
\ 'text': l:text,
|
\ 'code': l:match[2],
|
||||||
|
\ 'text': l:match[3],
|
||||||
\})
|
\})
|
||||||
endfor
|
endfor
|
||||||
return l:output
|
return l:output
|
||||||
|
Loading…
Reference in New Issue
Block a user