mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
Added support for linting of proto files (#1098)
* Added support for linting of proto files * Added function to get the proper protoc command
This commit is contained in:
16
test/command_callback/test_proto_command_callback.vader
Normal file
16
test/command_callback/test_proto_command_callback.vader
Normal file
@@ -0,0 +1,16 @@
|
||||
Before:
|
||||
call ale#test#SetDirectory('/testplugin/test/command_callback')
|
||||
call ale#test#SetFilename('test.proto')
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
call ale#test#RestoreDirectory()
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The default command should be correct):
|
||||
|
||||
AssertEqual
|
||||
\ 'protoc' . ' -I ' . ale#Escape(getcwd()) . ' --lint_out=. ' . '%s',
|
||||
\ ale_linters#proto#protoc_gen_lint#GetCommand(bufnr(''))
|
||||
|
||||
Reference in New Issue
Block a user