2024-01-07 10:14:20 -05:00
|
|
|
" Author: neersighted <bjorn@neersighted.com>, John Eikenberry <jae@zhar.net>
|
2018-03-31 10:55:20 -04:00
|
|
|
" Description: go vet for Go files
|
|
|
|
|
2018-09-24 20:40:17 -04:00
|
|
|
call ale#Set('go_go_executable', 'go')
|
2018-08-25 12:13:42 -04:00
|
|
|
call ale#Set('go_govet_options', '')
|
|
|
|
|
2018-03-31 10:55:20 -04:00
|
|
|
call ale#linter#Define('go', {
|
2018-07-30 17:18:16 -04:00
|
|
|
\ 'name': 'govet',
|
|
|
|
\ 'aliases': ['go vet'],
|
2018-03-31 10:55:20 -04:00
|
|
|
\ 'output_stream': 'stderr',
|
2019-03-08 06:04:56 -05:00
|
|
|
\ 'executable': {b -> ale#Var(b, 'go_go_executable')},
|
2021-05-05 04:25:00 -04:00
|
|
|
\ 'cwd': '%s:h',
|
2024-01-07 10:14:20 -05:00
|
|
|
\ 'command': {b ->
|
|
|
|
\ ale#go#EnvString(b)
|
|
|
|
\ . '%e vet'
|
|
|
|
\ . ale#Pad(ale#Var(b, 'go_govet_options'))
|
|
|
|
\ . ' .'
|
|
|
|
\ },
|
2018-03-31 10:55:20 -04:00
|
|
|
\ 'callback': 'ale#handlers#go#Handler',
|
|
|
|
\ 'lint_file': 1,
|
|
|
|
\})
|