2017-06-14 04:35:11 -04:00
|
|
|
Before:
|
2017-10-08 18:26:50 -04:00
|
|
|
Save g:ale_fuse_fusionlint_options
|
|
|
|
Save g:ale_fuse_fusionlint_executable
|
|
|
|
|
|
|
|
unlet! g:ale_fuse_fusionlint_options
|
|
|
|
unlet! g:ale_fuse_fusionlint_executable
|
|
|
|
|
2017-06-14 04:35:11 -04:00
|
|
|
runtime ale_linters/fuse/fusionlint.vim
|
|
|
|
|
|
|
|
After:
|
2017-10-08 18:26:50 -04:00
|
|
|
Restore
|
|
|
|
|
2017-06-14 04:35:11 -04:00
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute(The fuse fusionlint command callback should return the correct default string):
|
2017-10-08 18:26:50 -04:00
|
|
|
AssertEqual ale#Escape('fusion-lint') . ' --filename %s -i',
|
2017-06-14 04:35:11 -04:00
|
|
|
\ join(split(ale_linters#fuse#fusionlint#GetCommand(1)))
|
|
|
|
|
|
|
|
Execute(The fuse fusionlint command callback should let you set options):
|
|
|
|
let g:ale_fuse_fusionlint_options = '--example-option argument'
|
|
|
|
|
2017-10-08 18:26:50 -04:00
|
|
|
AssertEqual
|
|
|
|
\ ale#Escape('fusion-lint')
|
|
|
|
\ . ' --example-option argument --filename %s -i',
|
2017-06-14 04:35:11 -04:00
|
|
|
\ join(split(ale_linters#fuse#fusionlint#GetCommand(1)))
|
|
|
|
|
|
|
|
Execute(The fusionlint executable should be configurable):
|
|
|
|
let g:ale_fuse_fusionlint_executable = 'util/linter.fuse'
|
|
|
|
|
|
|
|
AssertEqual 'util/linter.fuse', ale_linters#fuse#fusionlint#GetExecutable(1)
|
2017-10-08 18:26:50 -04:00
|
|
|
AssertEqual
|
|
|
|
\ ale#Escape('util/linter.fuse')
|
|
|
|
\ . ' --filename %s -i',
|
2017-06-14 04:35:11 -04:00
|
|
|
\ join(split(ale_linters#fuse#fusionlint#GetCommand(1)))
|