googleapis / googleapis/api-linter
api-linter as a protoc plugin, e.g., protoc-gen-api-linter
- Dominant language
- Go
- Stars
- 765
- Forks
- 181
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 3
Description
Thanks for stopping by to let us know something could be better!
**Is your feature request related to a problem? Please describe.**
I'd like to reuse the functionalities of bazel's `proto_library` for managing dependencies and `import` paths.
After some debugging and trying out ideas, I find plugins specifically usable and useful and easy to integrate into existing Starlark rules.
Hence this feature request.
**Describe the solution you'd like**
In addition to `//cmd/api-linter`, provide a `protoc-gen-api-linter`.
In a manner similar to how [`protolint`](https://github.com/yoheimuta/protolint) provides a `protoc-gen-protolint` plugin (https://github.com/yoheimuta/protolint/blob/master/cmd/protoc-gen-protolint/README.md).
**Describe alternatives you've considered**
Well, the real alternative worth comparing is just `api-linter` as is. I am happy with it for the most part, except that I have to work hard to find out proper `-I` flags and order them correctly.
**Additional context**
None that I'm aware of right now. But could add more later.
Contributor guide
Assessment
This issue has not been assessed yet.