buf-plugin-timestamp-suffix

command
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL