Require function! to be used instead of function
This commit is contained in:
parent
e19a81cb09
commit
cb8a140141
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
call ale#Set('haskell_stack_build_options', '--fast')
|
call ale#Set('haskell_stack_build_options', '--fast')
|
||||||
|
|
||||||
function ale_linters#haskell#stack_build#GetCommand(buffer) abort
|
function! ale_linters#haskell#stack_build#GetCommand(buffer) abort
|
||||||
let l:flags = ale#Var(a:buffer, 'haskell_stack_build_options')
|
let l:flags = ale#Var(a:buffer, 'haskell_stack_build_options')
|
||||||
|
|
||||||
return 'stack build ' . l:flags
|
return 'stack build ' . l:flags
|
||||||
|
@ -75,6 +75,7 @@ fi
|
|||||||
check_errors \
|
check_errors \
|
||||||
'^function.*) *$' \
|
'^function.*) *$' \
|
||||||
'Function without abort keyword (See :help except-compat)'
|
'Function without abort keyword (See :help except-compat)'
|
||||||
|
check_errors '^function[^!]' 'function without !'
|
||||||
check_errors ' \+$' 'Trailing whitespace'
|
check_errors ' \+$' 'Trailing whitespace'
|
||||||
check_errors '^ * end\?i\? *$' 'Write endif, not en, end, or endi'
|
check_errors '^ * end\?i\? *$' 'Write endif, not en, end, or endi'
|
||||||
check_errors '^ [^ ]' 'Use four spaces, not two spaces'
|
check_errors '^ [^ ]' 'Use four spaces, not two spaces'
|
||||||
|
Loading…
Reference in New Issue
Block a user