Add tflint fot Terraform

This commit is contained in:
Nathaniel Williams
2017-10-26 19:32:33 +01:00
committed by w0rp
parent 6ed456f99c
commit e4456a4e0e
9 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
Before:
call ale#test#SetDirectory('/testplugin/test')
runtime ale_linters/terraform/tflint.vim
After:
call ale#test#RestoreDirectory()
call ale#linter#Reset()
Execute(adjacent config file should be found):
call ale#test#SetFilename('tflint-test-files/foo/bar.tf')
AssertEqual
\ (
\ ale#Escape('tflint')
\ . ' --config '
\ . ale#Escape(ale#path#Winify(g:dir . '/tflint-test-files/foo/.tflint.hcl'))
\ . ' -f json'
\ ),
\ ale_linters#terraform#tflint#GetCommand(bufnr(''))