Hide more trailing whitespace warnings when the option is on for flake8.

This commit is contained in:
w0rp 2016-10-12 15:36:59 +01:00
parent 1a8d596d26
commit dbbf77c19d
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ function! ale_linters#python#flake8#Handle(buffer, lines)
let l:text = l:code . ': ' . l:match[4]
let l:type = l:code[0] ==# 'E' ? 'E' : 'W'
if l:code ==# 'W291' && !g:ale_warn_about_trailing_whitespace
if (l:code ==# 'W291' || l:code ==# 'W293') && !g:ale_warn_about_trailing_whitespace
" Skip warnings for trailing whitespace if the option is off.
continue
endif