#852 - Capture error codes for luacheck

This commit is contained in:
w0rp 2017-11-19 00:02:35 +00:00
parent 41cb174f3a
commit 40e26f0bc2
2 changed files with 12 additions and 5 deletions

View file

@ -35,8 +35,9 @@ function! ale_linters#lua#luacheck#Handle(buffer, lines) abort
call add(l:output, {
\ 'lnum': l:match[1] + 0,
\ 'col': l:match[2] + 0,
\ 'text': l:match[3] . l:match[4] . ': ' . l:match[5],
\ 'type': l:match[3],
\ 'code': l:match[3] . l:match[4],
\ 'text': l:match[5],
\})
endfor