diff options
author | Nathaniel Williams <nat@livewatch.com> | 2017-10-26 14:14:28 -0500 |
---|---|---|
committer | Nathaniel Williams <nat@livewatch.com> | 2017-10-26 14:14:28 -0500 |
commit | 22e8050639cc81a35c49479839a4c3e6ea9d9cc0 (patch) | |
tree | 60ba83245fda6dc08f6bfa51ffd49716ac7f4478 | |
parent | e4456a4e0e9622baf2af30acd34a28963df5f4fa (diff) | |
download | ale-22e8050639cc81a35c49479839a4c3e6ea9d9cc0.zip |
don't use stdin with tflint
-rw-r--r-- | ale_linters/terraform/tflint.vim | 2 | ||||
-rw-r--r-- | test/command_callback/test_terraform_tflint_command_callback.vader | 4 | ||||
-rw-r--r-- | test/test_tflint_config_detection.vader | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ale_linters/terraform/tflint.vim b/ale_linters/terraform/tflint.vim index f66a9635..894be22d 100644 --- a/ale_linters/terraform/tflint.vim +++ b/ale_linters/terraform/tflint.vim @@ -46,7 +46,7 @@ function! ale_linters#terraform#tflint#GetCommand(buffer) abort let l:cmd .= ' ' . l:opts endif - let l:cmd .= ' -f json' + let l:cmd .= ' -f json %t' return l:cmd endfunction diff --git a/test/command_callback/test_terraform_tflint_command_callback.vader b/test/command_callback/test_terraform_tflint_command_callback.vader index ba768152..b0b4c955 100644 --- a/test/command_callback/test_terraform_tflint_command_callback.vader +++ b/test/command_callback/test_terraform_tflint_command_callback.vader @@ -21,12 +21,12 @@ Execute(The default executable should be configurable): Execute(The default command should be good): let g:ale_terraform_tflint_executable = 'tflint' AssertEqual - \ ale#Escape('tflint') . ' -f json', + \ ale#Escape('tflint') . ' -f json %t', \ ale_linters#terraform#tflint#GetCommand(bufnr('')) Execute(Overriding things should work): let g:ale_terraform_tflint_executable = 'fnord' let g:ale_terraform_tflint_options = '--whatever' AssertEqual - \ ale#Escape('fnord') . ' --whatever -f json', + \ ale#Escape('fnord') . ' --whatever -f json %t', \ ale_linters#terraform#tflint#GetCommand(bufnr('')) diff --git a/test/test_tflint_config_detection.vader b/test/test_tflint_config_detection.vader index ac64c031..65c364ea 100644 --- a/test/test_tflint_config_detection.vader +++ b/test/test_tflint_config_detection.vader @@ -13,6 +13,6 @@ Execute(adjacent config file should be found): \ ale#Escape('tflint') \ . ' --config ' \ . ale#Escape(ale#path#Winify(g:dir . '/tflint-test-files/foo/.tflint.hcl')) - \ . ' -f json' + \ . ' -f json %t' \ ), \ ale_linters#terraform#tflint#GetCommand(bufnr('')) |