2017-11-10 09:37:23 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('proto', 'protoc_gen_lint')
|
2017-11-10 09:37:23 +00:00
|
|
|
call ale#test#SetFilename('test.proto')
|
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-11-10 09:37:23 +00:00
|
|
|
|
|
|
|
Execute(The default command should be correct):
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'protoc',
|
|
|
|
\ 'protoc' . ' -I ' . ale#Escape(getcwd()) . ' --lint_out=. ' . '%s'
|
2018-01-06 19:56:28 +00:00
|
|
|
|
|
|
|
Execute(The callback should include any additional options):
|
|
|
|
let b:ale_proto_protoc_gen_lint_options = '--some-option'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'protoc',
|
|
|
|
\ 'protoc' . ' -I ' . ale#Escape(getcwd()) . ' --some-option --lint_out=. ' . '%s'
|