summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-12-19 14:09:00 +0000
committerGitHub <noreply@github.com>2017-12-19 14:09:00 +0000
commita7d51afda5934636ede2af39cf99576b7e583dff (patch)
treeef3378df98e841f1e14de6ebb39f22ed8741f180
parent2cacba5758614beadee38e493df957206aae8dde (diff)
parent532594839c2ee435e9f240bb699694b991fac56e (diff)
downloadale-a7d51afda5934636ede2af39cf99576b7e583dff.zip
Merge pull request #1221 from JelteF/patch-1
Fix erb linter for puppet style erb templates
-rw-r--r--ale_linters/eruby/erb.vim2
-rw-r--r--test/command_callback/test_erb_command_callback.vader2
2 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/eruby/erb.vim b/ale_linters/eruby/erb.vim
index 65de18ee..61d97032 100644
--- a/ale_linters/eruby/erb.vim
+++ b/ale_linters/eruby/erb.vim
@@ -5,7 +5,7 @@ function! ale_linters#eruby#erb#GetCommand(buffer) abort
let l:rails_root = ale#ruby#FindRailsRoot(a:buffer)
if empty(l:rails_root)
- return 'erb -P -x %t | ruby -c'
+ return 'erb -P -T - -x %t | ruby -c'
endif
" Rails-flavored eRuby does not comply with the standard as understood by
diff --git a/test/command_callback/test_erb_command_callback.vader b/test/command_callback/test_erb_command_callback.vader
index 9b1d223c..481f64f9 100644
--- a/test/command_callback/test_erb_command_callback.vader
+++ b/test/command_callback/test_erb_command_callback.vader
@@ -10,7 +10,7 @@ Execute(Executable should not contain any filter code by default):
call ale#test#SetFilename('../ruby_fixtures/not_a_rails_app/file.rb')
AssertEqual
- \ 'erb -P -x %t | ruby -c',
+ \ 'erb -P -T - -x %t | ruby -c',
\ ale_linters#eruby#erb#GetCommand(bufnr(''))
Execute(Executable should filter invalid eRuby when inside a Rails project):