mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
14 lines
372 B
Plaintext
14 lines
372 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('ruby', 'ruby')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default command should be correct):
|
|
AssertLinter 'ruby', ale#Escape('ruby') . ' -w -c -T1 %t'
|
|
|
|
Execute(The executable should be configurable):
|
|
let g:ale_ruby_ruby_executable = 'foobar'
|
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' -w -c -T1 %t'
|