mirror of
https://github.com/dense-analysis/ale
synced 2024-12-28 00:52:20 +00:00
Hide more trailing whitespace warnings when the option is on for flake8.
This commit is contained in:
parent
1a8d596d26
commit
dbbf77c19d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user