#2132 - Implement deferred command handling for linters

This commit is contained in:
w0rp
2019-02-21 21:24:41 +00:00
parent a8b987a1c3
commit ffa45fa3fb
9 changed files with 102 additions and 11 deletions

View File

@@ -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', {