mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-08 21:15:18 +08:00
CI / Build (push) Canceled after 0s
CI / Neovim 0.10 Windows (push) Canceled after 0s
CI / Neovim 0.12 Windows (push) Canceled after 0s
CI / Vim 8.2 Windows (push) Canceled after 0s
CI / Vim 9.2 Windows (push) Canceled after 0s
CI / Lint (push) Canceled after 0s
CI / Lua (push) Canceled after 0s
CI / Neovim 0.10 Linux (push) Canceled after 0s
CI / Neovim 0.12 Linux (push) Canceled after 0s
CI / Vim 8.2 Linux (push) Canceled after 0s
CI / Vim 9.2 Linux (push) Canceled after 0s
* Rename erblint executable to erb_lint Fix warning: "Calling `erblint` is deprecated, please call the renamed executable `erb_lint` instead." * Update default erblint executable name Change default value of erblint executable from 'erblint' to 'erb_lint'. * Update tests to new excecutable default * fix test
27 lines
813 B
Plaintext
27 lines
813 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('eruby', 'erblint')
|
|
call ale#test#SetFilename('dummy.html.erb')
|
|
|
|
let g:ale_eruby_erblint_executable = 'erb_lint'
|
|
let g:ale_eruby_erblint_options = ''
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(Executable should default to erb_lint):
|
|
AssertLinter 'erb_lint', ale#Escape('erb_lint')
|
|
\ . ' --format json --stdin %s'
|
|
|
|
Execute(Should be able to set a custom executable):
|
|
let g:ale_eruby_erblint_executable = 'bin/erblint'
|
|
|
|
AssertLinter 'bin/erblint' , ale#Escape('bin/erblint')
|
|
\ . ' --format json --stdin %s'
|
|
|
|
Execute(Setting bundle appends 'exec erb_lint'):
|
|
let g:ale_eruby_erblint_executable = 'path to/bundle'
|
|
|
|
AssertLinter 'path to/bundle', ale#Escape('path to/bundle')
|
|
\ . ' exec erb_lint'
|
|
\ . ' --format json --stdin %s'
|