mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-30 14:45:29 +08:00
#2132 - Implement deferred command handling for linters
This commit is contained in:
@@ -82,7 +82,15 @@ Execute (PreProcess should throw when command is not a string):
|
||||
\ 'executable': 'echo',
|
||||
\ 'command': [],
|
||||
\})
|
||||
AssertEqual '`command` must be a string if defined', g:vader_exception
|
||||
AssertEqual '`command` must be a String or Function if defined', g:vader_exception
|
||||
|
||||
Execute (PreProcess should allow command to be a callback):
|
||||
call ale#linter#PreProcess('testft', {
|
||||
\ 'name': 'foo',
|
||||
\ 'callback': 'SomeFunction',
|
||||
\ 'executable': 'echo',
|
||||
\ 'command': function('type'),
|
||||
\})
|
||||
|
||||
Execute (PreProcess should throw when command_callback is not a callback):
|
||||
AssertThrows call ale#linter#PreProcess('testft', {
|
||||
|
||||
Reference in New Issue
Block a user