mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Simplify the code for most linters and tests with closures
This commit is contained in:
@@ -17,3 +17,12 @@ Execute(Overriding options should work):
|
||||
let g:ale_terraform_tflint_options = '--whatever'
|
||||
|
||||
AssertLinter 'fnord', ale#Escape('fnord') . ' --whatever -f json %t'
|
||||
|
||||
Execute(Configuration files should be found):
|
||||
call ale#test#SetFilename('../tflint-test-files/foo/bar.tf')
|
||||
|
||||
AssertLinter 'tflint',
|
||||
\ ale#Escape('tflint')
|
||||
\ . ' --config '
|
||||
\ . ale#Escape(ale#path#Simplify(g:dir . '/../tflint-test-files/foo/.tflint.hcl'))
|
||||
\ . ' -f json %t'
|
||||
|
||||
Reference in New Issue
Block a user