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