Documentation ¶
Overview ¶
Package main implements a simple plugin that checks that syntax is specified in every file.
This is just demonstrating the additional functionality that check.Files have over FileDescriptors and FileDescriptorProtos.
To use this plugin:
# buf.yaml version: v2 lint: use: - STANDARD # omit if you do not want to use the rules builtin to buf - PLUGIN_SYNTAX_SPECIFIED plugins: - plugin: buf-plugin-syntax-specified
Note that the buf CLI implements this check by as a builtin rule, but this is just for example.
Click to show internal directories.
Click to hide internal directories.