mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Add support for V: "v" (compiler) and "vfmt" fixer. (#3622)
* v: add "v fmt" fixer. * v: add "v" (build) linter. * v: fix vlint complaints and add documentation. * v: add tests. * v: use ale#Pad().
This commit is contained in:
25
test/linter/test_v_command_callback.vader
Normal file
25
test/linter/test_v_command_callback.vader
Normal file
@@ -0,0 +1,25 @@
|
||||
Before:
|
||||
Save g:ale_v_v_executable
|
||||
|
||||
call ale#assert#SetUpLinterTest('v', 'v')
|
||||
|
||||
GivenCommandOutput ['/foo/bar', '/foo/baz']
|
||||
|
||||
After:
|
||||
Restore
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The default command should be correct):
|
||||
AssertLinter 'v', 'v . -o /tmp/vim-ale-v'
|
||||
|
||||
Execute(Extra options should be supported):
|
||||
let g:ale_v_v_options = '--foo-bar'
|
||||
|
||||
AssertLinter 'v', 'v --foo-bar . -o /tmp/vim-ale-v'
|
||||
|
||||
let g:ale_v_vbuild_options = ''
|
||||
|
||||
Execute(The executable should be configurable):
|
||||
let g:ale_v_v_executable = 'foobar'
|
||||
|
||||
AssertLinter 'foobar', 'foobar . -o /tmp/vim-ale-v'
|
||||
Reference in New Issue
Block a user