summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-28 10:08:34 +0000
committerw0rp <devw0rp@gmail.com>2017-11-28 10:08:34 +0000
commit0ab689db0a137f7f62a3856eeba7c0ad235a625a (patch)
treeea80ba1bfb220de9a0aa55c60c7fac0cf8c13522 /plugin/ale.vim
parent4e821e64c7292ba635e55c409a015023d7549374 (diff)
downloadale-0ab689db0a137f7f62a3856eeba7c0ad235a625a.zip
Allow warnings about trailing blank lines to be hidden for flake8 and pycodestyle
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index a8bce1b4..8c97e39f 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -175,8 +175,9 @@ let g:ale_statusline_format = get(g:, 'ale_statusline_format',
\)
" This flag can be set to 0 to disable warnings for trailing whitespace
-let g:ale_warn_about_trailing_whitespace =
-\ get(g:, 'ale_warn_about_trailing_whitespace', 1)
+call ale#Set('warn_about_trailing_whitespace', 1)
+" This flag can be set to 0 to disable warnings for trailing blank lines
+call ale#Set('warn_about_trailing_blank_lines', 1)
" A flag for controlling the maximum size of the command history to store.
let g:ale_max_buffer_history_size = get(g:, 'ale_max_buffer_history_size', 20)