This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/command_callback/test_vint_command_callback.vader

24 lines
730 B
Text
Raw Normal View History

Before:
call ale#assert#SetUpLinterTest('vim', 'vint')
let b:command_tail = (has('nvim') ? ' --enable-neovim' : '')
\ . ' -f "{file_path}:{line_number}:{column_number}: {severity}: {policy_name} - {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,
\]