summaryrefslogtreecommitdiff
path: root/test/linter/test_c_flawfinder.vader
blob: 75626d7a49e773e415e4c331344d7dc09e418d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Before:
  call ale#assert#SetUpLinterTest('c', 'flawfinder')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default 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_c_flawfinder_minlevel = 8

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

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

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