2017-06-14 04:35:11 -04:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('fuse', 'fusionlint')
|
2017-06-14 04:35:11 -04:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-06-14 04:35:11 -04:00
|
|
|
|
|
|
|
Execute(The fuse fusionlint command callback should return the correct default string):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'fusion-lint', ale#Escape('fusion-lint') . ' --filename %s -i'
|
2017-06-14 04:35:11 -04:00
|
|
|
|
|
|
|
Execute(The fuse fusionlint command callback should let you set options):
|
|
|
|
let g:ale_fuse_fusionlint_options = '--example-option argument'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'fusion-lint',
|
|
|
|
\ ale#Escape('fusion-lint') . ' --example-option argument --filename %s -i'
|
2017-06-14 04:35:11 -04:00
|
|
|
|
|
|
|
Execute(The fusionlint executable should be configurable):
|
2018-07-15 13:24:53 -04:00
|
|
|
let g:ale_fuse_fusionlint_executable = 'foobar'
|
2017-06-14 04:35:11 -04:00
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' --filename %s -i'
|