mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
20 lines
661 B
Plaintext
20 lines
661 B
Plaintext
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'
|