2016-10-11 07:57:42 -04:00
|
|
|
" Author: neersighted <bjorn@neersighted.com>
|
|
|
|
" Description: go vet for Go files
|
2018-02-25 06:39:45 -05:00
|
|
|
"
|
|
|
|
" Author: John Eikenberry <jae@zhar.net>
|
|
|
|
" Description: updated to work with go1.10
|
|
|
|
|
|
|
|
function! ale_linters#go#govet#GetCommand(buffer) abort
|
|
|
|
return ale#path#BufferCdString(a:buffer) . ' go vet .'
|
|
|
|
endfunction
|
|
|
|
|
2016-10-11 07:57:42 -04:00
|
|
|
call ale#linter#Define('go', {
|
|
|
|
\ 'name': 'go vet',
|
|
|
|
\ 'output_stream': 'stderr',
|
|
|
|
\ 'executable': 'go',
|
2018-02-25 06:39:45 -05:00
|
|
|
\ 'command_callback': 'ale_linters#go#govet#GetCommand',
|
2018-03-20 10:19:48 -04:00
|
|
|
\ 'callback': 'ale#handlers#go#Handler',
|
2018-02-25 06:39:45 -05:00
|
|
|
\ 'lint_file': 1,
|
2016-10-11 07:57:42 -04:00
|
|
|
\})
|