mirror of
https://github.com/dense-analysis/ale
synced 2024-12-18 04:15:39 +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
29 lines
752 B
Plaintext
29 lines
752 B
Plaintext
Before:
|
|
Save g:ale_go_go_executable
|
|
Save g:ale_go_govet_options
|
|
Save g:ale_go_go111module
|
|
|
|
call ale#assert#SetUpLinterTest('go', 'govet')
|
|
|
|
After:
|
|
Restore
|
|
|
|
unlet! b:ale_go_go111module
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default go vet command should be correct):
|
|
AssertLinter 'go', ale#Escape('go') . ' vet .'
|
|
AssertLinterCwd '%s:h'
|
|
|
|
Execute(The go vet command and options should be configurable):
|
|
let g:ale_go_go_executable = 'foobar'
|
|
let g:ale_go_govet_options = '--foo-bar'
|
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' vet --foo-bar .'
|
|
|
|
Execute(Go environment variables should be supported):
|
|
let b:ale_go_go111module = 'on'
|
|
|
|
AssertLinter 'go', ale#Env('GO111MODULE', 'on') . ale#Escape('go') . ' vet .'
|