buf-plugin-syntax-specified

command
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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