From 2a56475cf79e47f603811d6440853b9d951fb53d Mon Sep 17 00:00:00 2001 From: Evan Rutledge Borden Date: Fri, 28 Sep 2018 11:37:40 -0400 Subject: [PATCH 1/2] Remove test vars that cover bug These test vars were covering up a bug in the hlint linter implementation. Without these vars we can see the behavior that is exhibited in `vim` proper. --- .../test_haskell_hlint_command_callbacks.vader | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/command_callback/test_haskell_hlint_command_callbacks.vader b/test/command_callback/test_haskell_hlint_command_callbacks.vader index d4ee708c..6d227c9d 100644 --- a/test/command_callback/test_haskell_hlint_command_callbacks.vader +++ b/test/command_callback/test_haskell_hlint_command_callbacks.vader @@ -1,9 +1,6 @@ Before: call ale#assert#SetUpLinterTest('haskell', 'hlint') - let g:ale_haskell_hlint_executable = 'hlint' - let g:ale_haskell_hlint_options = '' - let b:base_opts = '--color=never --json -' After: From eae8ffafb828213d76269769018cd71f3178486f Mon Sep 17 00:00:00 2001 From: Evan Rutledge Borden Date: Fri, 28 Sep 2018 13:54:21 -0400 Subject: [PATCH 2/2] Set global vars in hlint linter file. --- ale_linters/haskell/hlint.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ale_linters/haskell/hlint.vim b/ale_linters/haskell/hlint.vim index fbb49fdb..0cc7437f 100644 --- a/ale_linters/haskell/hlint.vim +++ b/ale_linters/haskell/hlint.vim @@ -1,6 +1,9 @@ " Author: jparoz " Description: hlint for Haskell files +call ale#Set('haskell_hlint_executable', 'hlint') +call ale#Set('haskell_hlint_options', get(g:, 'hlint_options', '')) + function! ale_linters#haskell#hlint#Handle(buffer, lines) abort let l:output = []