Ignore "useless use of variable in void context"
The following ERB generates a "Possibly useless use of variable in void context" warning from Syntastic: ```erb <%= comment %> ``` The warning can be eliminated by making it: ```erb <%= comment.to_s %> ``` However, this behavior is the default and is redundant. There are other cases where this warning pops up and in each case I've found it to be of no use.
This commit is contained in:
parent
4713baaeec
commit
6a034a7d65
1 changed files with 2 additions and 0 deletions
2
vimrc
2
vimrc
|
@ -141,6 +141,8 @@ nnoremap <C-l> <C-w>l
|
|||
" configure syntastic syntax checking to check on open as well as save
|
||||
let g:syntastic_check_on_open=1
|
||||
let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute \"ng-"]
|
||||
let g:syntastic_eruby_ruby_quiet_messages =
|
||||
\ {"regex": "possibly useless use of a variable in void context"}
|
||||
|
||||
" Set spellfile to location that is guaranteed to exist, can be symlinked to
|
||||
" Dropbox or kept in Git and managed outside of thoughtbot/dotfiles using rcm.
|
||||
|
|
Loading…
Add table
Reference in a new issue