2018-02-25 14:11:04 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('c', 'flawfinder')
|
2018-02-25 14:11:04 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-02-25 14:11:04 +00:00
|
|
|
|
|
|
|
Execute(The flawfinder command should be correct):
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'flawfinder', ale#Escape('flawfinder') . ' -CDQS --minlevel=1 %t'
|
2018-02-25 14:11:04 +00:00
|
|
|
|
|
|
|
Execute(The minlevel of flawfinder should be configurable):
|
|
|
|
let b:ale_c_flawfinder_minlevel = 8
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'flawfinder', ale#Escape('flawfinder') . ' -CDQS --minlevel=8 %t'
|
2018-02-25 14:11:04 +00:00
|
|
|
|
|
|
|
Execute(Additional flawfinder options should be configurable):
|
2018-08-02 22:44:12 +00:00
|
|
|
let b:ale_c_flawfinder_options = '--foobar'
|
2018-02-25 14:11:04 +00:00
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'flawfinder',
|
|
|
|
\ ale#Escape('flawfinder') . ' -CDQS --foobar --minlevel=1 %t'
|
2018-02-25 14:11:04 +00:00
|
|
|
|
|
|
|
Execute(The flawfinder exectable should be configurable):
|
|
|
|
let b:ale_c_flawfinder_executable = 'foo/bar'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'foo/bar', ale#Escape('foo/bar') . ' -CDQS --minlevel=1 %t'
|