2018-08-25 12:13:42 -04:00
|
|
|
" Author: eborden <evan@evan-borden.com>
|
|
|
|
" Description: Integration of hlint refactor with ALE.
|
|
|
|
"
|
|
|
|
|
|
|
|
function! ale#fixers#hlint#Fix(buffer) abort
|
|
|
|
return {
|
2018-09-30 16:58:57 -04:00
|
|
|
\ 'command': ale#handlers#hlint#GetExecutable(a:buffer)
|
2018-08-25 12:13:42 -04:00
|
|
|
\ . ' --refactor'
|
|
|
|
\ . ' --refactor-options="--inplace"'
|
|
|
|
\ . ' %t',
|
|
|
|
\ 'read_temporary_file': 1,
|
|
|
|
\}
|
|
|
|
endfunction
|