mirror of
https://github.com/dense-analysis/ale
synced 2024-12-27 08:32:24 +00:00
ae1d051504
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
22 lines
584 B
VimL
22 lines
584 B
VimL
" Author: neersighted <bjorn@neersighted.com>, John Eikenberry <jae@zhar.net>
|
|
" Description: go vet for Go files
|
|
|
|
call ale#Set('go_go_executable', 'go')
|
|
call ale#Set('go_govet_options', '')
|
|
|
|
call ale#linter#Define('go', {
|
|
\ 'name': 'govet',
|
|
\ 'aliases': ['go vet'],
|
|
\ 'output_stream': 'stderr',
|
|
\ 'executable': {b -> ale#Var(b, 'go_go_executable')},
|
|
\ 'cwd': '%s:h',
|
|
\ 'command': {b ->
|
|
\ ale#go#EnvString(b)
|
|
\ . '%e vet'
|
|
\ . ale#Pad(ale#Var(b, 'go_govet_options'))
|
|
\ . ' .'
|
|
\ },
|
|
\ 'callback': 'ale#handlers#go#Handler',
|
|
\ 'lint_file': 1,
|
|
\})
|