diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-28 10:08:34 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-28 10:08:34 +0000 |
commit | 0ab689db0a137f7f62a3856eeba7c0ad235a625a (patch) | |
tree | ea80ba1bfb220de9a0aa55c60c7fac0cf8c13522 /ale_linters/python/flake8.vim | |
parent | 4e821e64c7292ba635e55c409a015023d7549374 (diff) | |
download | ale-0ab689db0a137f7f62a3856eeba7c0ad235a625a.zip |
Allow warnings about trailing blank lines to be hidden for flake8 and pycodestyle
Diffstat (limited to 'ale_linters/python/flake8.vim')
-rw-r--r-- | ale_linters/python/flake8.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ale_linters/python/flake8.vim b/ale_linters/python/flake8.vim index 480e6058..400e60f0 100644 --- a/ale_linters/python/flake8.vim +++ b/ale_linters/python/flake8.vim @@ -91,6 +91,12 @@ function! ale_linters#python#flake8#Handle(buffer, lines) abort continue endif + if l:code is# 'W391' + \&& !ale#Var(a:buffer, 'warn_about_trailing_blank_lines') + " Skip warnings for trailing blank lines if the option is off + continue + endif + let l:item = { \ 'lnum': l:match[1] + 0, \ 'col': l:match[2] + 0, |