Fix erb linter for puppet style erb scripts
This commit is contained in:
parent
d2a6d9a915
commit
e7eb272714
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ function! ale_linters#eruby#erb#GetCommand(buffer) abort
|
||||||
let l:rails_root = ale#ruby#FindRailsRoot(a:buffer)
|
let l:rails_root = ale#ruby#FindRailsRoot(a:buffer)
|
||||||
|
|
||||||
if empty(l:rails_root)
|
if empty(l:rails_root)
|
||||||
return 'erb -P -x %t | ruby -c'
|
return 'erb -P -T - -x %t | ruby -c'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Rails-flavored eRuby does not comply with the standard as understood by
|
" Rails-flavored eRuby does not comply with the standard as understood by
|
||||||
|
|
Reference in a new issue