mirror of https://github.com/dense-analysis/ale
24 lines
714 B
Plaintext
24 lines
714 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('vim', 'vint')
|
|
let b:command_tail = (has('nvim') ? ' --enable-neovim' : '')
|
|
\ . ' -f "{file_path}:{line_number}:{column_number}: {severity}: {description} (see {reference})" %t'
|
|
|
|
After:
|
|
unlet! b:bin_dir
|
|
unlet! b:executable
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default command should be correct):
|
|
AssertLinter 'vint', [
|
|
\ ale#Escape('vint') .' --version',
|
|
\ ale#Escape('vint') .' -s --no-color' . b:command_tail,
|
|
\]
|
|
|
|
Execute(The executable should be configurable):
|
|
let g:ale_vim_vint_executable = 'foobar'
|
|
|
|
AssertLinter 'foobar', [
|
|
\ ale#Escape('foobar') .' --version',
|
|
\ ale#Escape('foobar') .' -s --no-color' . b:command_tail,
|
|
\]
|