Checker haskell/hlint: force colors off (@phadej).

This commit is contained in:
LCD 47 2019-03-07 20:02:16 +02:00
parent 69b0c3e85a
commit 1089ee5212
3 changed files with 11 additions and 1 deletions

View File

@ -2749,6 +2749,8 @@ details:
http://community.haskell.org/~ndm/hlint/ http://community.haskell.org/~ndm/hlint/
Syntastic requires "hlint" version 1.9.4 or later.
Checker options~ Checker options~
This checker is initialised using the "makeprgBuild()" function and thus it This checker is initialised using the "makeprgBuild()" function and thus it

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START lockvar! g:_SYNTASTIC_START
endif endif
let g:_SYNTASTIC_VERSION = '3.9.0-32' let g:_SYNTASTIC_VERSION = '3.9.0-33'
lockvar g:_SYNTASTIC_VERSION lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1 " Sanity checks {{{1

View File

@ -13,9 +13,17 @@ let g:loaded_syntastic_haskell_hlint_checker = 1
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim
function! SyntaxCheckers_haskell_hlint_IsAvailable() dict
if !executable(self.getExec())
return 0
endif
return syntastic#util#versionIsAtLeast(self.getVersion(), [1, 9, 4])
endfunction
function! SyntaxCheckers_haskell_hlint_GetLocList() dict function! SyntaxCheckers_haskell_hlint_GetLocList() dict
let buf = bufnr('') let buf = bufnr('')
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'args_before': '--color=never',
\ 'fname': syntastic#util#shescape(fnamemodify(bufname(buf), ':p')) }) \ 'fname': syntastic#util#shescape(fnamemodify(bufname(buf), ':p')) })
let errorformat = let errorformat =