From d511d5af11041ffe7802a6027c76483506c232ad Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Sat, 30 Jan 2021 17:11:12 +0900 Subject: Fix 2726 - fix terraform linter. Instead of using `terraform fmt` for linting use `terraform validate` with json output. --- .../test_terraform_terraform_command_callback.vader | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/command_callback') diff --git a/test/command_callback/test_terraform_terraform_command_callback.vader b/test/command_callback/test_terraform_terraform_command_callback.vader index fabd902d..25ca652a 100644 --- a/test/command_callback/test_terraform_terraform_command_callback.vader +++ b/test/command_callback/test_terraform_terraform_command_callback.vader @@ -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 ' -- cgit v1.2.3