2016-10-11 07:57:42 -04:00
|
|
|
" 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',
|
2016-10-11 08:48:42 -04:00
|
|
|
\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
|
2016-10-11 07:57:42 -04:00
|
|
|
\})
|
|
|
|
|