Documentation ¶
Overview ¶
Package main implements a simple plugin that checks that all google.protobuf.Timestamp fields end in a specific suffix.
To use this plugin:
# buf.yaml version: v2 lint: use: - STANDARD # omit if you do not want to use the rules builtin to buf - TIMESTAMP_SUFFIX plugins: - plugin: buf-plugin-timestamp-suffix
The default suffix is "_time", but this can be overridden with the "timestamp_suffix" option key in your buf.yaml:
# buf.yaml version: v2 lint: use: - STANDARD # omit if you do not want to use the rules builtin to buf - TIMESTAMP_SUFFIX plugins: - plugin: buf-plugin-timestamp-suffix options: timestamp_suffix: _timestamp
Click to show internal directories.
Click to hide internal directories.