summaryrefslogtreecommitdiff
path: root/ale_linters/eruby/erb.vim
diff options
context:
space:
mode:
authorRob Whittaker <rob@purinkle.co.uk>2023-05-26 06:52:51 +0100
committerGitHub <noreply@github.com>2023-05-26 14:52:51 +0900
commit7021ed0c6859ec8b1bf5012d1276d54a786449c3 (patch)
treec8a764dc655ff4eccfcf22146dd68f02274be0bd /ale_linters/eruby/erb.vim
parenta46121a532b2baaa339016ab910c59f1cded46e5 (diff)
downloadale-7021ed0c6859ec8b1bf5012d1276d54a786449c3.zip
šŸ› Fix a Ruby deprecation warning in the ERB linter (#4521)
* Fix a Ruby deprecation warning in the ERB linter Before, the ERB linter used positional arguments. Newer versions of Ruby have deprecated this method signature. We fixed the linter to use keyword arguments. * fixup! Fix a Ruby deprecation warning in the ERB linter
Diffstat (limited to 'ale_linters/eruby/erb.vim')
-rw-r--r--ale_linters/eruby/erb.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/eruby/erb.vim b/ale_linters/eruby/erb.vim
index f3438320..0ca157aa 100644
--- a/ale_linters/eruby/erb.vim
+++ b/ale_linters/eruby/erb.vim
@@ -11,7 +11,7 @@ function! ale_linters#eruby#erb#GetCommand(buffer) abort
" Rails-flavored eRuby does not comply with the standard as understood by
" ERB, so we'll have to do some substitution. This does not reduce the
" effectiveness of the linterā€”the translated code is still evaluated.
- return 'ruby -r erb -e ' . ale#Escape('puts ERB.new($stdin.read.gsub(%{<%=},%{<%}), nil, %{-}).src') . '< %t | ruby -c'
+ return 'ruby -r erb -e ' . ale#Escape('puts ERB.new($stdin.read.gsub(%{<%=},%{<%}), trim_mode: %{-}).src') . '< %t | ruby -c'
endfunction
call ale#linter#Define('eruby', {