diff options
author | Horacio Sanson <horacio@allm.inc> | 2020-04-18 15:27:11 +0900 |
---|---|---|
committer | Horacio Sanson <horacio@allm.inc> | 2020-04-18 15:27:11 +0900 |
commit | 5035281cb978d8fe6de7d91c1973a19f1a96bb3c (patch) | |
tree | 03457d0a85f66bfb00a912d5d49ef6313eee294e /test/fixers/test_ktlint_fixer_callback.vader | |
parent | 198361bc0da6f13d1ea5f699fc202c981e97b861 (diff) | |
download | ale-5035281cb978d8fe6de7d91c1973a19f1a96bb3c.zip |
Fix 2269 - use ktlint stdin.
Use stdin flag instead of temporary files. This allows ktlint to work
with .editorconfig files.
Diffstat (limited to 'test/fixers/test_ktlint_fixer_callback.vader')
-rw-r--r-- | test/fixers/test_ktlint_fixer_callback.vader | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/fixers/test_ktlint_fixer_callback.vader b/test/fixers/test_ktlint_fixer_callback.vader index 47b37788..ba01a409 100644 --- a/test/fixers/test_ktlint_fixer_callback.vader +++ b/test/fixers/test_ktlint_fixer_callback.vader @@ -21,9 +21,8 @@ Execute(The ktlint callback should return the correct default values): AssertEqual \ { \ 'command': ale#Escape('xxxinvalid') - \ . ' %t' + \ . ' --stdin' \ . ' --format', - \ 'read_temporary_file': 1, \ }, \ ale#fixers#ktlint#Fix(bufnr('')) @@ -37,8 +36,7 @@ Execute(The ktlint callback should include custom ktlint options): \ 'command': ale#Escape('xxxinvalid') \ . ' ' . g:ale_kotlin_ktlint_options \ . ' --ruleset /path/to/custom/ruleset.jar' - \ . ' %t' + \ . ' --stdin' \ . ' --format', - \ 'read_temporary_file': 1, \ }, \ ale#fixers#ktlint#Fix(bufnr('')) |