Fix #1424 - Make the brittany fixer work

This commit is contained in:
aspidiets 2018-04-08 17:38:43 +01:00 committed by w0rp
parent 91d7e81ebc
commit f9ae58849a
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
" Author: eborden <evan@evan-borden.com> " Author: eborden <evan@evan-borden.com>, ifyouseewendy <ifyouseewendy@gmail.com>, aspidiets <emarshall85@gmail.com>
" Description: Integration of brittany with ALE. " Description: Integration of brittany with ALE.
call ale#Set('haskell_brittany_executable', 'brittany') call ale#Set('haskell_brittany_executable', 'brittany')
@ -8,6 +8,7 @@ function! ale#fixers#brittany#Fix(buffer) abort
return { return {
\ 'command': ale#Escape(l:executable) \ 'command': ale#Escape(l:executable)
\ . ' --write-mode inplace'
\ . ' %t', \ . ' %t',
\ 'read_temporary_file': 1, \ 'read_temporary_file': 1,
\} \}

View File

@ -18,6 +18,7 @@ Execute(The brittany callback should return the correct default values):
\ { \ {
\ 'read_temporary_file': 1, \ 'read_temporary_file': 1,
\ 'command': ale#Escape('xxxinvalid') \ 'command': ale#Escape('xxxinvalid')
\ . ' --write-mode inplace'
\ . ' %t', \ . ' %t',
\ }, \ },
\ ale#fixers#brittany#Fix(bufnr('')) \ ale#fixers#brittany#Fix(bufnr(''))