mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 13:34:46 +08:00
Add linter for ispc
This commit is contained in:
27
test/command_callback/test_ispc_ispc_command_callbacks.vader
Normal file
27
test/command_callback/test_ispc_ispc_command_callbacks.vader
Normal file
@@ -0,0 +1,27 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('ispc', 'ispc')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The executable should be configurable):
|
||||
AssertLinter 'ispc',
|
||||
\ ale#Escape('ispc')
|
||||
\ . ' -I ' . ale#Escape(getcwd())
|
||||
\ . ' -'
|
||||
|
||||
let b:ale_ispc_ispc_executable = 'foo'
|
||||
|
||||
AssertLinter 'foo',
|
||||
\ ale#Escape('foo')
|
||||
\ . ' -I ' . ale#Escape(getcwd())
|
||||
\ . ' -'
|
||||
|
||||
Execute(The options should be configurable):
|
||||
let g:ale_ispc_ispc_options = '--foo'
|
||||
|
||||
AssertLinter 'ispc',
|
||||
\ ale#Escape('ispc')
|
||||
\ . ' -I ' . ale#Escape(getcwd())
|
||||
\ . ' --foo'
|
||||
\ . ' -'
|
||||
Reference in New Issue
Block a user