mirror of
https://github.com/dense-analysis/ale.git
synced 2026-07-29 11:16:46 +08:00
069baf559e
* feat(terraform): add trivy * fixup! feat(terraform): add trivy --------- Co-authored-by: cos <cos>
21 lines
741 B
Plaintext
21 lines
741 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('terraform', 'trivy')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default command should be correct):
|
|
AssertLinter 'trivy', ale#Escape('trivy') . ' config --format json .'
|
|
|
|
Execute(The default executable should be configurable):
|
|
let b:ale_terraform_trivy_executable = '/usr/bin/trivy'
|
|
|
|
AssertLinter '/usr/bin/trivy', ale#Escape('/usr/bin/trivy') . ' config --format json .'
|
|
|
|
Execute(Overriding options should work):
|
|
let g:ale_terraform_trivy_executable = '/usr/local/bin/trivy'
|
|
let g:ale_terraform_trivy_options = '--severity HIGH,CRITICAL'
|
|
|
|
AssertLinter '/usr/local/bin/trivy',
|
|
\ ale#Escape('/usr/local/bin/trivy') . ' config --format json --severity HIGH,CRITICAL .'
|