mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-12 01:48:52 +08:00
Fix #2668 - Set g:ale_go_go111module
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
Before:
|
||||
Save g:ale_go_go111module
|
||||
|
||||
call ale#assert#SetUpLinterTest('go', 'staticcheck')
|
||||
call ale#test#SetFilename('test.go')
|
||||
|
||||
After:
|
||||
unlet! b:ale_go_go111module
|
||||
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The staticcheck callback should return the right defaults):
|
||||
@@ -36,8 +40,8 @@ Execute(The staticcheck callback should use the `GO111MODULE` option if set):
|
||||
|
||||
" Test with lint_package option set
|
||||
let b:ale_go_staticcheck_lint_package = 1
|
||||
|
||||
AssertLinter 'staticcheck',
|
||||
\ ale#path#CdString(expand('%:p:h'))
|
||||
\ . ale#Env('GO111MODULE', 'off')
|
||||
\ . 'staticcheck .'
|
||||
unlet! b:ale_go_go111module
|
||||
|
||||
Reference in New Issue
Block a user