api: Add `buf` linting (#21849)

initially this will only check for "unused imports" but we can expand
as other linting rules are met.

Signed-off-by: Ryan Northey <ryan@synca.io>

Mirrored from https://github.com/envoyproxy/envoy @ e9f492281f9f905b6bedcbbb334c370b36c56fb2
pull/626/head
data-plane-api(Azure Pipelines) 2 years ago
parent 3dad7c8e55
commit 8105cc00c5
  1. 49
      buf.lock
  2. 11
      buf.yaml
  3. 2
      envoy/config/trace/v3/opentelemetry.proto

@ -1,52 +1,31 @@
# Generated by buf. DO NOT EDIT. # Generated by buf. DO NOT EDIT.
version: v1 version: v1
deps: deps:
- remote: buf.build
owner: beta
repository: opencensus
branch: main
commit: 5f5f8259293649d68707d2e5b6285748
digest: b1-myYwcdM0Xu05qIwhiy4eWEcARYUuZZ1vTbYvrrHu1mU=
create_time: 2021-03-03T20:50:42.079743Z
- remote: buf.build
owner: beta
repository: opentelemetry
branch: main
commit: 549da630ffe24b53be3983fcee3bb346
digest: b1-HVAvWKH61BF6TdZSbHRhrD2SUuC0V7uAlZgCRimGPLI=
create_time: 2021-08-09T14:24:57.923964Z
- remote: buf.build - remote: buf.build
owner: beta owner: beta
repository: prometheus repository: prometheus
branch: main
commit: a91b42d18a994cd4b07b37f365f87cf9 commit: a91b42d18a994cd4b07b37f365f87cf9
digest: b1-uKmv58fyoNwJI855qg7UEagfdyUl6XNPsFAdDoi57f4=
create_time: 2021-06-23T20:16:58.410272Z
- remote: buf.build
owner: beta
repository: protoc-gen-validate
branch: main
commit: 82388a0a0cb04e98a203f95dfed5e84b
digest: b1-lYgUMN58PxyCwvfQoopp40AJ-oHHjWXAzksF7v9U-U4=
create_time: 2021-06-21T22:00:30.152545Z
- remote: buf.build - remote: buf.build
owner: beta owner: cncf
repository: xds repository: xds
branch: main commit: 0492166643854ea08814f4349286f9cb
commit: 45f850b92541434cbde4aece01bc7d53 - remote: buf.build
digest: b1-QZUL5DC6-nVgMMlajH_hlImwghg5HjRsqlEAOl0dZgI= owner: envoyproxy
create_time: 2021-08-09T14:37:06.872899Z repository: protoc-gen-validate
commit: dc09a417d27241f7b069feae2cd74a0e
- remote: buf.build - remote: buf.build
owner: gogo owner: gogo
repository: protobuf repository: protobuf
branch: main
commit: 4df00b267f944190a229ce3695781e99 commit: 4df00b267f944190a229ce3695781e99
digest: b1-sjLgsg7CzrkOrIjBDh3s-l0aMjE6oqTj85-OsoopKAw=
create_time: 2021-08-10T00:14:28.345069Z
- remote: buf.build - remote: buf.build
owner: googleapis owner: googleapis
repository: googleapis repository: googleapis
branch: main
commit: d1a849b8f8304950832335723096e954 commit: d1a849b8f8304950832335723096e954
digest: b1-zJkwX0YeOp1Wa0Jaj_RqMLa2-oEzePH6PJEK8aaMeI4= - remote: buf.build
create_time: 2021-08-26T15:07:19.652533Z owner: opencensus
repository: opencensus
commit: d1d7ccd1281e4f42ab7ce9a7d2b29e33
- remote: buf.build
owner: opentelemetry
repository: opentelemetry
commit: 187ea5573ff044faa892a5d244cb2b48

@ -1,11 +1,11 @@
version: v1beta1 version: v1
deps: deps:
- buf.build/googleapis/googleapis:d1a849b8f8304950832335723096e954 - buf.build/googleapis/googleapis:d1a849b8f8304950832335723096e954
- buf.build/beta/opencensus - buf.build/opencensus/opencensus
- buf.build/beta/prometheus - buf.build/beta/prometheus
- buf.build/beta/opentelemetry - buf.build/opentelemetry/opentelemetry
- buf.build/gogo/protobuf - buf.build/gogo/protobuf
- buf.build/beta/xds - buf.build/cncf/xds
breaking: breaking:
ignore_unstable_packages: true ignore_unstable_packages: true
use: use:
@ -17,3 +17,6 @@ breaking:
- FILE_SAME_PACKAGE - FILE_SAME_PACKAGE
- FIELD_NO_DELETE_UNLESS_NUMBER_RESERVED - FIELD_NO_DELETE_UNLESS_NUMBER_RESERVED
- FIELD_NO_DELETE_UNLESS_NAME_RESERVED - FIELD_NO_DELETE_UNLESS_NAME_RESERVED
lint:
use:
- IMPORT_USED

@ -4,9 +4,7 @@ package envoy.config.trace.v3;
import "envoy/config/core/v3/grpc_service.proto"; import "envoy/config/core/v3/grpc_service.proto";
import "udpa/annotations/migrate.proto";
import "udpa/annotations/status.proto"; import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto"; import "validate/validate.proto";
option java_package = "io.envoyproxy.envoy.config.trace.v3"; option java_package = "io.envoyproxy.envoy.config.trace.v3";

Loading…
Cancel
Save