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