53bfe41841
So that I can find the relevant information in the vint linting policy summary and policies can be easily configured https://github.com/Vimjas/vint/wiki/Vint-linting-policy-summary Before this change an example warning message appears as: autocmd should execute in an augroup or execute with a group (see :help :autocmd) After this change the same example appears as: ProhibitAutocmdWithNoGroup - autocmd should execute in an augroup or execute with a group (see :help :autocmd)
23 lines
730 B
Text
23 lines
730 B
Text
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,
|
|
\]
|