From f9ae58849a8b465e367ed311f0506bae2a537a62 Mon Sep 17 00:00:00 2001 From: aspidiets Date: Sun, 8 Apr 2018 17:38:43 +0100 Subject: [PATCH] Fix #1424 - Make the brittany fixer work --- autoload/ale/fixers/brittany.vim | 3 ++- test/fixers/test_brittany_fixer_callback.vader | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 +" Author: eborden , ifyouseewendy , aspidiets " 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(''))