treewide: add buf_proto_lint_test to all proto_library targets
Change-Id: Iaf6dc22fdbef6fcfd0bedff755bcdb06b56a6631
Reviewed-on: https://review.monogon.dev/c/monogon/+/3800
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/metropolis/test/localregistry/spec/BUILD.bazel b/metropolis/test/localregistry/spec/BUILD.bazel
index 871fe35..f926b7a 100644
--- a/metropolis/test/localregistry/spec/BUILD.bazel
+++ b/metropolis/test/localregistry/spec/BUILD.bazel
@@ -1,6 +1,20 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
+load("@rules_proto_grpc_buf//:defs.bzl", "buf_proto_lint_test")
+
+buf_proto_lint_test(
+ name = "spec_proto_lint_test",
+ except_rules = [
+ "PACKAGE_VERSION_SUFFIX",
+ "PACKAGE_DIRECTORY_MATCH", # TODO: evaluate correctness
+ ],
+ protos = [":spec_proto"],
+ use_rules = [
+ "DEFAULT",
+ "COMMENTS",
+ ],
+)
proto_library(
name = "spec_proto",