From f6dc2de237cddb808e756f452fd69c3b1ad30140 Mon Sep 17 00:00:00 2001 From: Adam Liddell Date: Thu, 14 Dec 2023 17:22:04 +0000 Subject: [PATCH] Fix buildifier lint --- cpp/cpp_grpc_library.bzl | 2 +- tools/rulegen/cpp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/cpp_grpc_library.bzl b/cpp/cpp_grpc_library.bzl index 446694a8..1e242ea6 100644 --- a/cpp/cpp_grpc_library.bzl +++ b/cpp/cpp_grpc_library.bzl @@ -37,7 +37,7 @@ def cpp_grpc_library(name, **kwargs): # buildifier: disable=function-docstring deps = GRPC_DEPS + kwargs.get("deps", []), hdrs = [name_pb + "_hdrs"], includes = [name_pb] if kwargs.get("output_mode", "PREFIXED") == "PREFIXED" else ["."], - **{ + **{ k: v for (k, v) in kwargs.items() if k in bazel_build_rule_common_attrs + [ diff --git a/tools/rulegen/cpp.go b/tools/rulegen/cpp.go index d08d2f63..f8e45c25 100644 --- a/tools/rulegen/cpp.go +++ b/tools/rulegen/cpp.go @@ -63,7 +63,7 @@ var cppGrpcLibraryRuleTemplate = mustTemplate(cppLibraryRuleTemplateString + ` deps = GRPC_DEPS + kwargs.get("deps", []), hdrs = [name_pb + "_hdrs"], includes = [name_pb] if kwargs.get("output_mode", "PREFIXED") == "PREFIXED" else ["."], - **{ + **{ k: v for (k, v) in kwargs.items() if k in bazel_build_rule_common_attrs + [