fix(hadolint): set code field as well (#3943)

This commit is contained in:
infokiller authored and GitHub committed 2021-10-19 15:30:19 +09:00
1 parent 16898417e6
commit cb0f0e1d0b
3 files changed
+13 -4

No files matched your search

+8 -2
View File
@@ -55,13 +55,19 @@ function! ale_linters#dockerfile#hadolint#Handle(buffer, lines) abort
let l:detail = 'hadolint could not parse the file because of a syntax error.'
endif
call add(l:output, {
let l:line_output = {
\ 'lnum': l:lnum,
\ 'col': l:colnum,
\ 'type': l:type,
\ 'text': l:text,
\ 'detail': l:detail
\})
\}
if l:code isnot# ''
let l:line_output['code'] = l:code
endif
call add(l:output, l:line_output)
endfor
return l:output