From 98152dace75600d1aabac35da26413365a2698cb Mon Sep 17 00:00:00 2001 From: Spencer Connaughton Date: Tue, 21 May 2024 13:56:04 -0400 Subject: [PATCH] Add test ignores. --- examples/bzlmod/MODULE.bazel | 2 +- examples/bzlmod/buf.yaml | 4 ++++ examples/bzlmod/file.proto | 13 +++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/examples/bzlmod/MODULE.bazel b/examples/bzlmod/MODULE.bazel index 960f30b..3bdbbd2 100644 --- a/examples/bzlmod/MODULE.bazel +++ b/examples/bzlmod/MODULE.bazel @@ -25,7 +25,7 @@ local_path_override( buf = use_extension("@rules_buf//buf:extensions.bzl", "buf") # Override the default version of buf -buf.toolchains(version = "v1.26.0") +buf.toolchains(version = "v1.31.0") # See https://buf.build/docs/build-systems/bazel#buf-dependencies buf.dependency(module = "buf.build/envoyproxy/protoc-gen-validate:eac44469a7af47e7839a7f1f3d7ac004") diff --git a/examples/bzlmod/buf.yaml b/examples/bzlmod/buf.yaml index 29fd418..a83b5f1 100644 --- a/examples/bzlmod/buf.yaml +++ b/examples/bzlmod/buf.yaml @@ -1,4 +1,8 @@ version: v1 lint: use: + - DEFAULT + allow_comment_ignores: true + except: - IMPORT_USED + - RPC_REQUEST_STANDARD_NAME diff --git a/examples/bzlmod/file.proto b/examples/bzlmod/file.proto index 92235b4..f180f1f 100644 --- a/examples/bzlmod/file.proto +++ b/examples/bzlmod/file.proto @@ -16,3 +16,16 @@ syntax = "proto3"; import "unused.proto"; import "validate/validate.proto"; + +message HttpBody { + string name = 1; +} + +message Empty {} + +service HttpService { + // Receives an inbound message an http client. + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + rpc ReceiveMessage (HttpBody) returns (Empty) {} +}