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:
Jeff Willette
2017-11-10 18:37:23 +09:00
committed by w0rp
parent d425b8a18a
commit 27780cbb23
4 changed files with 61 additions and 0 deletions

View 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(''))