Merge pull request #3119 from hsanson/2269-ktlint-stdin-support

Fix 2269 - use ktlint stdin.
This commit is contained in:
w0rp authored and GitHub committed 2020-07-21 12:45:26 +01:00
commit 70ab831001
4 files changed
+5 -8

No files matched your search

+1 -2
View File
@@ -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
+1 -1
View File
@@ -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