2019-05-23 13:12:36 +00:00
|
|
|
" Based upon :help ale-development
|
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('terraform', 'terraform')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
|
|
|
Execute(The default command should be correct):
|
2021-01-30 08:11:12 +00:00
|
|
|
AssertLinter 'terraform',
|
|
|
|
\ ale#Escape('terraform') . ' validate -no-color -json '
|
|
|
|
|
2022-10-29 11:56:09 +00:00
|
|
|
Execute(The default command should be overridden):
|
2021-01-30 08:11:12 +00:00
|
|
|
let b:ale_terraform_terraform_executable = '/bin/other/terraform'
|
|
|
|
AssertLinter '/bin/other/terraform',
|
|
|
|
\ ale#Escape('/bin/other/terraform') . ' validate -no-color -json '
|