2017-12-02 15:47:01 -05:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('perl', 'perl')
|
2017-12-02 15:47:01 -05:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-12-02 15:47:01 -05:00
|
|
|
|
|
|
|
Execute(The default Perl command callback should be correct):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'perl', ale#Escape('perl') . ' -c -Mwarnings -Ilib %t'
|
2017-12-02 15:47:01 -05: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 13:24:53 -04:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' -w %t'
|