summaryrefslogtreecommitdiff
path: root/test/linter/test_rflint.vader
blob: 0ee97b30e17aebb1c87ccdf21dc7b7364b1e47ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Before:
  call ale#assert#SetUpLinterTest('robot', 'rflint')
  let b:rflint_format = ' --format'
  \ . ' "{filename}:{severity}:{linenumber}:{char}:{rulename}:{message}" %s'

After:
  call ale#assert#TearDownLinterTest()
  unlet! b:rflint_format

Execute(The rflint command callback should return default string):
  AssertLinter 'rflint',
  \ 'rflint'
  \ . b:rflint_format

Execute(The rflint executable should be configurable):
  let g:ale_robot_rflint_executable = '~/.local/bin/rflint'

  AssertLinter '~/.local/bin/rflint',
  \ '~/.local/bin/rflint'
  \ . b:rflint_format