From 68c54c0813f3261cf61a56417e85afe4f4f84fb1 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 23 Mar 2015 16:38:55 -0400 Subject: [PATCH] Sort syntastic ignore messages and ignore undefined variable errors (as these are often referenced from outside the file) --- vim/config/plugins.vim | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index 5a53c46..91e80c5 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -184,16 +184,9 @@ scriptencoding utf-8 endif "configure warnings/errors that should be silenced by module - let g:syntastic_sh_bashate_quiet_messages={ + let g:syntastic_less_lessc_quiet_messages={ \ 'regex':[ - \ 'Indent not multiple of 4' - \ ]} - let g:syntastic_sh_shellcheck_quiet_messages={ - \ 'regex':[ - \ '.*\[SC1001\]', - \ '.*\[SC2016\]', - \ '.*\[SC2029\]', - \ '.*\[SC2034\]' + \ 'NameError: variable @[^ ]* is undefined.*' \ ]} let g:syntastic_java_javac_quiet_messages={ \ 'regex':[ @@ -206,6 +199,17 @@ scriptencoding utf-8 \ '.*\[W293\]', \ '.*\[E501\]' \ ]} + let g:syntastic_sh_bashate_quiet_messages={ + \ 'regex':[ + \ 'Indent not multiple of 4' + \ ]} + let g:syntastic_sh_shellcheck_quiet_messages={ + \ 'regex':[ + \ '.*\[SC1001\]', + \ '.*\[SC2016\]', + \ '.*\[SC2029\]', + \ '.*\[SC2034\]' + \ ]} autocmd BufNewFile,BufRead PKGBUILD,bash.bashrc,.bashrc let g:syntastic_quiet_messages={"level":"warnings"} let g:syntastic_check_on_wq=0