summaryrefslogtreecommitdiff
path: root/autoload/ale/fixers/hlint.vim
blob: 88779a554d33d8b56d9b15253581471d07224e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
" Author: eborden <evan@evan-borden.com>
" Description: Integration of hlint refactor with ALE.
"

function! ale#fixers#hlint#Fix(buffer) abort
    return {
    \   'command': ale#handlers#hlint#GetExecutable(a:buffer)
    \       . ' --refactor'
    \       . ' --refactor-options="--inplace"'
    \       . ' %t',
    \   'read_temporary_file': 1,
    \}
endfunction