2016-10-11 11:57:42 +00:00
|
|
|
" Author: neersighted <bjorn@neersighted.com>
|
|
|
|
" Description: go vet for Go files
|
2018-02-25 11:39:45 +00: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 11:57:42 +00:00
|
|
|
call ale#linter#Define('go', {
|
|
|
|
\ 'name': 'go vet',
|
|
|
|
\ 'output_stream': 'stderr',
|
|
|
|
\ 'executable': 'go',
|
2018-02-25 11:39:45 +00:00
|
|
|
\ 'command_callback': 'ale_linters#go#govet#GetCommand',
|
2018-03-20 14:19:48 +00:00
|
|
|
\ 'callback': 'ale#handlers#go#Handler',
|
2018-02-25 11:39:45 +00:00
|
|
|
\ 'lint_file': 1,
|
2016-10-11 11:57:42 +00:00
|
|
|
\})
|