23442a2ec3
Two wrapper functions allow treating lines as errors or as warnings
15 lines
384 B
VimL
15 lines
384 B
VimL
" Author: neersighted <bjorn@neersighted.com>
|
|
" Description: golint for Go files
|
|
|
|
if exists('g:loaded_ale_linters_go_golint')
|
|
finish
|
|
endif
|
|
|
|
let g:loaded_ale_linters_go_golint = 1
|
|
|
|
call ale#linter#Define('go', {
|
|
\ 'name': 'golint',
|
|
\ 'executable': 'golint',
|
|
\ 'command': g:ale#util#stdin_wrapper . ' .go golint',
|
|
\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning',
|
|
\})
|