diff options
author | w0rp <devw0rp@gmail.com> | 2018-06-03 10:45:40 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-06-03 10:46:39 +0100 |
commit | 0db12702f33ad139ec3290508b6602ff16d0d444 (patch) | |
tree | 142ebff3538de5fdeb7cc89c80792c98b89c3db4 /ale_linters/gitcommit/gitlint.vim | |
parent | 786fc0a62f2d45b88967aad6d59bb9c483a576ae (diff) | |
download | ale-0db12702f33ad139ec3290508b6602ff16d0d444.zip |
Respect warn_about_trailing_whitespace for gitlint
Diffstat (limited to 'ale_linters/gitcommit/gitlint.vim')
-rw-r--r-- | ale_linters/gitcommit/gitlint.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ale_linters/gitcommit/gitlint.vim b/ale_linters/gitcommit/gitlint.vim index 0b4ca0fc..64731055 100644 --- a/ale_linters/gitcommit/gitlint.vim +++ b/ale_linters/gitcommit/gitlint.vim @@ -28,6 +28,10 @@ function! ale_linters#gitcommit#gitlint#Handle(buffer, lines) abort for l:match in ale#util#GetMatches(a:lines, l:pattern) let l:code = l:match[2] + if l:code is# 'T2' && !ale#Var(a:buffer, 'warn_about_trailing_whitespace') + continue + endif + let l:item = { \ 'lnum': l:match[1] + 0, \ 'text': l:match[3], |