mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 05:24:46 +08:00
Fix 2726 - fix terraform linter.
Instead of using `terraform fmt` for linting use `terraform validate` with json output.
This commit is contained in:
@@ -6,4 +6,10 @@ After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The default command should be correct):
|
||||
AssertLinter 'terraform', ale#Escape('terraform') . ' fmt -no-color --check=true -'
|
||||
AssertLinter 'terraform',
|
||||
\ ale#Escape('terraform') . ' validate -no-color -json '
|
||||
|
||||
Execute(The default command should be overriden):
|
||||
let b:ale_terraform_terraform_executable = '/bin/other/terraform'
|
||||
AssertLinter '/bin/other/terraform',
|
||||
\ ale#Escape('/bin/other/terraform') . ' validate -no-color -json '
|
||||
|
||||
Reference in New Issue
Block a user