mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-09 05:54:45 +08:00
Fix 2269 - use ktlint stdin.
Use stdin flag instead of temporary files. This allows ktlint to work with .editorconfig files.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user