mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-16 01:07:06 +08:00
Fix #2054 - Make golint configurable
This commit is contained in:
18
test/command_callback/test_golint_command_callbacks.vader
Normal file
18
test/command_callback/test_golint_command_callbacks.vader
Normal file
@@ -0,0 +1,18 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('go', 'golint')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The default golint command should be correct):
|
||||
AssertLinter 'golint', ale#Escape('golint') . ' %t'
|
||||
|
||||
Execute(The golint executable should be configurable):
|
||||
let b:ale_go_golint_executable = 'foobar'
|
||||
|
||||
AssertLinter 'foobar', ale#Escape('foobar') . ' %t'
|
||||
|
||||
Execute(The golint options should be configurable):
|
||||
let b:ale_go_golint_options = '--foo'
|
||||
|
||||
AssertLinter 'golint', ale#Escape('golint') . ' --foo %t'
|
||||
Reference in New Issue
Block a user