summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-09-03 11:27:19 +0100
committerGitHub <noreply@github.com>2018-09-03 11:27:19 +0100
commitc1f0956d9b69dc68edaa7c41b4546efeed37bf88 (patch)
tree6b4eb7b454fd10723df49db36a2b22a8f0ec0f99 /ale_linters
parentea01cc708b4beed3831a10065664c84dba68b5dc (diff)
parent244c5a8ce5f400efc76977c480965df0019d8fff (diff)
downloadale-c1f0956d9b69dc68edaa7c41b4546efeed37bf88.zip
Merge pull request #1869 from Steap/feature/gitlint-ignore-whitespace
gitcommit: fully implement warn_about_trailing_whitespace
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/gitcommit/gitlint.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/ale_linters/gitcommit/gitlint.vim b/ale_linters/gitcommit/gitlint.vim
index ec3bfb0b..a9c4822d 100644
--- a/ale_linters/gitcommit/gitlint.vim
+++ b/ale_linters/gitcommit/gitlint.vim
@@ -23,8 +23,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
+ if !ale#Var(a:buffer, 'warn_about_trailing_whitespace')
+ if l:code is# 'T2' || l:code is# 'B2'
+ continue
+ endif
endif
let l:item = {