From 05bee2499bd5c001694c9909bdd17307acde7718 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 2 Mar 2015 18:17:03 -0500 Subject: [PATCH] Set syntasic quiet messages by error code when possible + add "this \x will be regular x" warning for shellcheck --- vim/config/plugins.vim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index fb66b7e..ad55932 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -183,14 +183,16 @@ scriptencoding utf-8 let g:syntastic_check_on_open=0 endif + "configure warnings/errors that should be silenced by module let g:syntastic_sh_bashate_quiet_messages={ \ 'regex':[ \ 'Indent not multiple of 4' \ ]} let g:syntastic_sh_shellcheck_quiet_messages={ \ 'regex':[ - \ '.*appears unused\. Verify it or export it\. \[SC2034\]', - \ 'Expressions don.t expand in single quotes, use double quotes for that\. \[SC2016\]' + \ '.*\[SC1001\]', + \ '.*\[SC2016\]', + \ '.*\[SC2034\]' \ ]} let g:syntastic_java_javac_quiet_messages={ \ 'regex':[ @@ -200,8 +202,8 @@ scriptencoding utf-8 \ ]} let g:syntastic_python_flake8_quiet_messages={ \ 'regex':[ - \ 'line too long ([^)]*) \[E501\]', - \ 'blank line contains whitespace \[W293\]' + \ '.*\[W293\]', + \ '.*\[E501\]' \ ]} autocmd BufNewFile,BufRead PKGBUILD,bash.bashrc,.bashrc let g:syntastic_quiet_messages={"level":"warnings"}