Buf ships a binary
performs the lint functionality as a
protoc plugin. This is
useful in situations where you already have a
protoc plugin setup, such as Bazel.
All flags and config are passed as an option to the plugin as JSON. This must be done with
--buf-lint_opt flag as opposed to a parameter
--buf-lint_out as the option will include the ":" character as part of JSON.
The option for
protoc-gen-buf-lint has the following shape:
From the example from the tour:
We can instead use a custom configuration as well.