#427 Implement b:ale_warn_about_trailing_whitespace

This commit is contained in:
w0rp
2017-05-04 23:50:11 +01:00
parent c2a0847f99
commit 14f3fc777f
2 changed files with 4 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ function! ale#handlers#python#HandlePEP8Format(buffer, lines) abort
let l:code = l:match[3]
if (l:code ==# 'W291' || l:code ==# 'W293' || l:code ==# 'EANSIBLE002')
\ && !g:ale_warn_about_trailing_whitespace
\ && !ale#Var(a:buffer, 'warn_about_trailing_whitespace')
" Skip warnings for trailing whitespace if the option is off.
continue
endif