summaryrefslogtreecommitdiff
path: root/test/command_callback/test_vint_command_callback.vader
blob: 4ce277e8a0d0cca024d4975d0b5822ad6e04d576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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,
  \]