enable warnings for eruby files
This commit is contained in:
parent
e8afec0117
commit
e79015b0a7
@ -42,9 +42,16 @@ function! SyntaxCheckers_eruby_ruby_GetLocList() dict
|
|||||||
\ syntastic#util#shescape('puts ERB.new(File.read(' .
|
\ syntastic#util#shescape('puts ERB.new(File.read(' .
|
||||||
\ fname . encoding_spec .
|
\ fname . encoding_spec .
|
||||||
\ ').gsub(''<%='',''<%''), nil, ''-'').src') .
|
\ ').gsub(''<%='',''<%''), nil, ''-'').src') .
|
||||||
\ ' | ' . self.getExecEscaped() . ' -c'
|
\ ' | ' . self.getExecEscaped() . ' -w -c'
|
||||||
|
|
||||||
let errorformat =
|
let errorformat = '%-G%.%#warning: %\(possibly %\)%\?useless use of a literal in void context,'
|
||||||
|
|
||||||
|
" filter out lines starting with ...
|
||||||
|
" long lines are truncated and wrapped in ... %p then returns the wrong
|
||||||
|
" column offset
|
||||||
|
let errorformat .= '%-G%\%.%\%.%\%.%.%#,'
|
||||||
|
|
||||||
|
let errorformat .=
|
||||||
\ '%-GSyntax OK,'.
|
\ '%-GSyntax OK,'.
|
||||||
\ '%E-:%l: syntax error\, %m,%Z%p^,'.
|
\ '%E-:%l: syntax error\, %m,%Z%p^,'.
|
||||||
\ '%W-:%l: warning: %m,'.
|
\ '%W-:%l: warning: %m,'.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user