2018-02-25 09:11:04 -05:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('cpp', 'flawfinder')
|
2018-02-25 09:11:04 -05:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-02-25 09:11:04 -05:00
|
|
|
|
|
|
|
Execute(The flawfinder command should be correct):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'flawfinder',
|
|
|
|
\ ale#Escape('flawfinder') . ' -CDQS --minlevel=1 %t'
|
2018-02-25 09:11:04 -05:00
|
|
|
|
|
|
|
Execute(The minlevel of flawfinder should be configurable):
|
|
|
|
let b:ale_cpp_flawfinder_minlevel = 8
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'flawfinder',
|
|
|
|
\ ale#Escape('flawfinder') . ' -CDQS --minlevel=8 %t'
|
2018-02-25 09:11:04 -05:00
|
|
|
|
|
|
|
Execute(Additional flawfinder options should be configurable):
|
|
|
|
let b:ale_cpp_flawfinder_options = ' --foobar'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'flawfinder',
|
|
|
|
\ ale#Escape('flawfinder') . ' -CDQS --foobar --minlevel=1 %t'
|
2018-02-25 09:11:04 -05:00
|
|
|
|
|
|
|
Execute(The flawfinder exectable should be configurable):
|
|
|
|
let b:ale_cpp_flawfinder_executable = 'foo/bar'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'foo/bar', ale#Escape('foo/bar') . ' -CDQS --minlevel=1 %t'
|