All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('terraform', 'terraform_ls')
5 unlet! b:ale_terraform_terraform_executable
6 unlet! b:ale_terraform_ls_executable
7 unlet! b:ale_terraform_ls_options
9 call ale#assert#TearDownLinterTest()
11 Execute(The terraform-ls language should be correct):
12 AssertLSPLanguage 'terraform'
14 Execute(The default terraform-ls command should be correct):
15 AssertLinter 'terraform-ls', ale#Escape('terraform-ls') . ' serve'
17 Execute(The terrarform-ls executable and options should be configurable):
18 let b:ale_terraform_ls_executable = 'foo'
19 let b:ale_terraform_ls_options = '--bar'
21 AssertLinter 'foo', ale#Escape('foo') . ' serve --bar'
23 Execute(Should ignore non-absolute path custom terraform executables):
24 let b:ale_terraform_terraform_executable = 'terraform'
26 AssertLinter 'terraform-ls', ale#Escape('terraform-ls') . ' serve'
28 Execute(Should set absolute custom terraform executable):
29 let b:ale_terraform_terraform_executable = '/bin/terraform'
31 AssertLinter 'terraform-ls',
32 \ ale#Escape('terraform-ls') . ' serve -tf-exec /bin/terraform'
34 Execute(Should return nearest directory with .terraform if found in parent directory):
35 call ale#test#SetFilename('../test-files/terraform/main.tf')
37 AssertLSPProject ale#test#GetFilename('../test-files/terraform')