summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorHoracio Sanson <horacio@allm.inc>2020-04-18 15:27:11 +0900
committerHoracio Sanson <horacio@allm.inc>2020-04-18 15:27:11 +0900
commit5035281cb978d8fe6de7d91c1973a19f1a96bb3c (patch)
tree03457d0a85f66bfb00a912d5d49ef6313eee294e /autoload
parent198361bc0da6f13d1ea5f699fc202c981e97b861 (diff)
downloadale-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 'autoload')
-rw-r--r--autoload/ale/fixers/ktlint.vim3
-rw-r--r--autoload/ale/handlers/ktlint.vim2
2 files changed, 2 insertions, 3 deletions
diff --git a/autoload/ale/fixers/ktlint.vim b/autoload/ale/fixers/ktlint.vim
index cb975d6c..64d1340d 100644
--- a/autoload/ale/fixers/ktlint.vim
+++ b/autoload/ale/fixers/ktlint.vim
@@ -3,7 +3,6 @@
function! ale#fixers#ktlint#Fix(buffer) abort
return {
- \ 'command': ale#handlers#ktlint#GetCommand(a:buffer) . ' --format',
- \ 'read_temporary_file': 1,
+ \ 'command': ale#handlers#ktlint#GetCommand(a:buffer) . ' --format'
\}
endfunction
diff --git a/autoload/ale/handlers/ktlint.vim b/autoload/ale/handlers/ktlint.vim
index ad999485..77e7ab66 100644
--- a/autoload/ale/handlers/ktlint.vim
+++ b/autoload/ale/handlers/ktlint.vim
@@ -13,7 +13,7 @@ function! ale#handlers#ktlint#GetCommand(buffer) abort
return ale#Escape(l:executable)
\ . (empty(l:options) ? '' : ' ' . l:options)
\ . (empty(l:rulesets) ? '' : ' ' . l:rulesets)
- \ . ' %t'
+ \ . ' --stdin'
endfunction
function! ale#handlers#ktlint#GetRulesets(buffer) abort