summaryrefslogtreecommitdiff
path: root/test/command_callback/test_cpp_flawfinder_command_callbacks.vader
blob: 3f4067eadc6dc414b3baf126ae7711755a44cc61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Before:
  call ale#assert#SetUpLinterTest('cpp', 'flawfinder')

After:
  call ale#assert#TearDownLinterTest()

Execute(The flawfinder command should be correct):
  AssertLinter 'flawfinder',
  \ ale#Escape('flawfinder') . ' -CDQS --minlevel=1 %t'

Execute(The minlevel of flawfinder should be configurable):
  let b:ale_cpp_flawfinder_minlevel = 8

  AssertLinter 'flawfinder',
  \ ale#Escape('flawfinder') . ' -CDQS --minlevel=8 %t'

Execute(Additional flawfinder options should be configurable):
  let b:ale_cpp_flawfinder_options = ' --foobar'

  AssertLinter 'flawfinder',
  \ ale#Escape('flawfinder') . ' -CDQS --foobar --minlevel=1 %t'

Execute(The flawfinder exectable should be configurable):
  let b:ale_cpp_flawfinder_executable = 'foo/bar'

  AssertLinter 'foo/bar', ale#Escape('foo/bar') . ' -CDQS --minlevel=1 %t'