2017-12-02 20:47:01 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('perl', 'perl')
|
2017-12-02 20:47:01 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-12-02 20:47:01 +00:00
|
|
|
|
|
|
|
Execute(The default Perl command callback should be correct):
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'perl', ale#Escape('perl') . ' -c -Mwarnings -Ilib %t'
|
2017-12-02 20:47:01 +00:00
|
|
|
|
|
|
|
Execute(Overriding the executable and command should work):
|
|
|
|
let b:ale_perl_perl_executable = 'foobar'
|
|
|
|
let b:ale_perl_perl_options = '-w'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' -w %t'
|