summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraspidiets <emarshall85@gmail.com>2018-04-08 17:38:43 +0100
committerw0rp <devw0rp@gmail.com>2018-04-08 17:38:43 +0100
commitf9ae58849a8b465e367ed311f0506bae2a537a62 (patch)
tree5863c7868361251551c350966e36e29f5334f9f4
parent91d7e81ebc08581fc0339c939c0adecaa590f2f7 (diff)
downloadale-f9ae58849a8b465e367ed311f0506bae2a537a62.zip
Fix #1424 - Make the brittany fixer work
-rw-r--r--autoload/ale/fixers/brittany.vim3
-rw-r--r--test/fixers/test_brittany_fixer_callback.vader1
2 files changed, 3 insertions, 1 deletions
diff --git a/autoload/ale/fixers/brittany.vim b/autoload/ale/fixers/brittany.vim
index fed5eb8b..57c77325 100644
--- a/autoload/ale/fixers/brittany.vim
+++ b/autoload/ale/fixers/brittany.vim
@@ -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.
call ale#Set('haskell_brittany_executable', 'brittany')
@@ -8,6 +8,7 @@ function! ale#fixers#brittany#Fix(buffer) abort
return {
\ 'command': ale#Escape(l:executable)
+ \ . ' --write-mode inplace'
\ . ' %t',
\ 'read_temporary_file': 1,
\}
diff --git a/test/fixers/test_brittany_fixer_callback.vader b/test/fixers/test_brittany_fixer_callback.vader
index a0182b52..073e368c 100644
--- a/test/fixers/test_brittany_fixer_callback.vader
+++ b/test/fixers/test_brittany_fixer_callback.vader
@@ -18,6 +18,7 @@ Execute(The brittany callback should return the correct default values):
\ {
\ 'read_temporary_file': 1,
\ 'command': ale#Escape('xxxinvalid')
+ \ . ' --write-mode inplace'
\ . ' %t',
\ },
\ ale#fixers#brittany#Fix(bufnr(''))