From ee78371566589ea3f094d4e3670b712634858391 Mon Sep 17 00:00:00 2001 From: PJ Date: Fri, 17 Apr 2026 22:26:23 +0700 Subject: [PATCH] chore(proto): add buf config for codegen and lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Relaxes STANDARD lint rules that conflict with the terse service shape from ARCHITECTURE.md ยง7.2 (shared Empty, no Service suffix). --- buf.gen.yaml | 10 ++++++++++ buf.yaml | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 buf.gen.yaml create mode 100644 buf.yaml diff --git a/buf.gen.yaml b/buf.gen.yaml new file mode 100644 index 0000000..1e54028 --- /dev/null +++ b/buf.gen.yaml @@ -0,0 +1,10 @@ +version: v2 +plugins: + - local: protoc-gen-go + out: proto + opt: + - paths=source_relative + - local: protoc-gen-go-grpc + out: proto + opt: + - paths=source_relative diff --git a/buf.yaml b/buf.yaml new file mode 100644 index 0000000..bc92f10 --- /dev/null +++ b/buf.yaml @@ -0,0 +1,15 @@ +version: v2 +modules: + - path: proto +lint: + use: + - STANDARD + except: + - PACKAGE_DIRECTORY_MATCH + - SERVICE_SUFFIX + - RPC_REQUEST_STANDARD_NAME + - RPC_RESPONSE_STANDARD_NAME + - RPC_REQUEST_RESPONSE_UNIQUE +breaking: + use: + - FILE