2017-08-10 20:09:58 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('idris', 'idris')
|
2017-08-10 20:09:58 +00:00
|
|
|
|
|
|
|
After:
|
|
|
|
unlet! b:command_tail
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-08-10 20:09:58 +00:00
|
|
|
|
|
|
|
Execute(The executable should be used in the command):
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'idris',
|
|
|
|
\ ale#Escape('idris') . ' --total --warnpartial --warnreach --warnipkg --check %s'
|
2017-08-10 20:09:58 +00:00
|
|
|
|
|
|
|
let b:ale_idris_idris_executable = 'foobar'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'foobar',
|
|
|
|
\ ale#Escape('foobar') . ' --total --warnpartial --warnreach --warnipkg --check %s'
|
2017-08-10 20:09:58 +00:00
|
|
|
|
|
|
|
Execute(The options should be configurable):
|
|
|
|
let b:ale_idris_idris_options = '--something'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'idris', ale#Escape('idris') . ' --something --check %s'
|