2017-10-26 14:32:33 -04:00
|
|
|
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'))
|
2017-10-26 15:14:28 -04:00
|
|
|
\ . ' -f json %t'
|
2017-10-26 14:32:33 -04:00
|
|
|
\ ),
|
|
|
|
\ ale_linters#terraform#tflint#GetCommand(bufnr(''))
|