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