All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 Save g:ale_warn_about_trailing_whitespace
4 let g:ale_warn_about_trailing_whitespace = 1
6 runtime ale_linters/gitcommit/gitlint.vim
11 unlet! b:ale_warn_about_trailing_whitespace
13 call ale#linter#Reset()
15 Execute(The gitlint handler should handle basic warnings and syntax errors):
21 \ 'text': 'Body message is missing',
27 \ 'text': 'Second line is not empty: "to send to upstream"',
33 \ 'text': 'Body message is too short (19<20): "to send to upstream"',
39 \ 'text': 'Title exceeds max length (92>72): "some very long commit subject line where the author can''t wait to explain what he just fixed"',
43 \ ale_linters#gitcommit#gitlint#Handle(1, [
44 \ '1: B6 Body message is missing',
45 \ '2: B4 Second line is not empty: "to send to upstream"',
46 \ '3: B5 Body message is too short (19<20): "to send to upstream"',
47 \ '8: T1 Title exceeds max length (92>72): "some very long commit subject line where the author can''t wait to explain what he just fixed"'
50 Execute(Disabling trailing whitespace warnings should work):
56 \ 'text': 'Trailing whitespace',
60 \ ale_linters#gitcommit#gitlint#Handle(bufnr(''), [
61 \ '8: T2 Trailing whitespace',
69 \ 'text': 'Trailing whitespace',
73 \ ale_linters#gitcommit#gitlint#Handle(bufnr(''), [
74 \ '8: B2 Trailing whitespace',
77 let b:ale_warn_about_trailing_whitespace = 0
81 \ ale_linters#gitcommit#gitlint#Handle(bufnr(''), [
82 \ '8: T2 Trailing whitespace',
87 \ ale_linters#gitcommit#gitlint#Handle(bufnr(''), [
88 \ '8: B2 Trailing whitespace',