Merge pull request #1869 from Steap/feature/gitlint-ignore-whitespace

gitcommit: fully implement warn_about_trailing_whitespace
This commit is contained in:
w0rp
2018-09-03 11:27:19 +01:00
committed by GitHub
2 changed files with 23 additions and 2 deletions

View File

@@ -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 = {