mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-12-23 08:20:23 -05:00
Set syntasic quiet messages by error code when possible + add "this \x will be regular x" warning for shellcheck
This commit is contained in:
parent
88def793e7
commit
05bee2499b
1 changed files with 6 additions and 4 deletions
|
@ -183,14 +183,16 @@ scriptencoding utf-8
|
||||||
let g:syntastic_check_on_open=0
|
let g:syntastic_check_on_open=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
"configure warnings/errors that should be silenced by module
|
||||||
let g:syntastic_sh_bashate_quiet_messages={
|
let g:syntastic_sh_bashate_quiet_messages={
|
||||||
\ 'regex':[
|
\ 'regex':[
|
||||||
\ 'Indent not multiple of 4'
|
\ 'Indent not multiple of 4'
|
||||||
\ ]}
|
\ ]}
|
||||||
let g:syntastic_sh_shellcheck_quiet_messages={
|
let g:syntastic_sh_shellcheck_quiet_messages={
|
||||||
\ 'regex':[
|
\ 'regex':[
|
||||||
\ '.*appears unused\. Verify it or export it\. \[SC2034\]',
|
\ '.*\[SC1001\]',
|
||||||
\ 'Expressions don.t expand in single quotes, use double quotes for that\. \[SC2016\]'
|
\ '.*\[SC2016\]',
|
||||||
|
\ '.*\[SC2034\]'
|
||||||
\ ]}
|
\ ]}
|
||||||
let g:syntastic_java_javac_quiet_messages={
|
let g:syntastic_java_javac_quiet_messages={
|
||||||
\ 'regex':[
|
\ 'regex':[
|
||||||
|
@ -200,8 +202,8 @@ scriptencoding utf-8
|
||||||
\ ]}
|
\ ]}
|
||||||
let g:syntastic_python_flake8_quiet_messages={
|
let g:syntastic_python_flake8_quiet_messages={
|
||||||
\ 'regex':[
|
\ 'regex':[
|
||||||
\ 'line too long ([^)]*) \[E501\]',
|
\ '.*\[W293\]',
|
||||||
\ 'blank line contains whitespace \[W293\]'
|
\ '.*\[E501\]'
|
||||||
\ ]}
|
\ ]}
|
||||||
autocmd BufNewFile,BufRead PKGBUILD,bash.bashrc,.bashrc let g:syntastic_quiet_messages={"level":"warnings"}
|
autocmd BufNewFile,BufRead PKGBUILD,bash.bashrc,.bashrc let g:syntastic_quiet_messages={"level":"warnings"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue