diff options
author | w0rp <devw0rp@gmail.com> | 2017-09-11 00:47:10 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-09-11 00:47:10 +0100 |
commit | cb8a140141d6365f48e66dfaaaa8f9957f0dc832 (patch) | |
tree | 06914db7b1f615f95eeeb2eb15ae3cdaa4c5e7f6 | |
parent | e19a81cb09eccc30f064f31cfab8f3a525a88071 (diff) | |
download | ale-cb8a140141d6365f48e66dfaaaa8f9957f0dc832.zip |
Require function! to be used instead of function
-rw-r--r-- | ale_linters/haskell/stack_build.vim | 2 | ||||
-rwxr-xr-x | test/script/custom-checks | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/haskell/stack_build.vim b/ale_linters/haskell/stack_build.vim index 525fd3fb..44e2e86f 100644 --- a/ale_linters/haskell/stack_build.vim +++ b/ale_linters/haskell/stack_build.vim @@ -6,7 +6,7 @@ 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') return 'stack build ' . l:flags diff --git a/test/script/custom-checks b/test/script/custom-checks index aad16c9c..3624ffd7 100755 --- a/test/script/custom-checks +++ b/test/script/custom-checks @@ -75,6 +75,7 @@ fi check_errors \ '^function.*) *$' \ 'Function without abort keyword (See :help except-compat)' +check_errors '^function[^!]' 'function without !' check_errors ' \+$' 'Trailing whitespace' check_errors '^ * end\?i\? *$' 'Write endif, not en, end, or endi' check_errors '^ [^ ]' 'Use four spaces, not two spaces' |