From a6e2ab384582fb1182a9dd50d40efebb244023cd Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 3 May 2023 14:04:03 +0300 Subject: [PATCH] [#27] *: Add linter exceptions Each of these is not easy to do, so add an exeption for now. Signed-off-by: Evgenii Stratonikov --- pkg/tracing/grpc_internal.go | 2 +- rpc/client/call_options.go | 2 +- signature/body.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/tracing/grpc_internal.go b/pkg/tracing/grpc_internal.go index 25cf026..847c7ca 100644 --- a/pkg/tracing/grpc_internal.go +++ b/pkg/tracing/grpc_internal.go @@ -124,7 +124,7 @@ func (cs *clientStream) RecvMsg(m interface{}) error { type serverStream struct { originalStream grpc.ServerStream - ctx context.Context + ctx context.Context // nolint:containedctx } func newgRPCServerStream(ctx context.Context, originalStream grpc.ServerStream) grpc.ServerStream { diff --git a/rpc/client/call_options.go b/rpc/client/call_options.go index bf99c92..8134e46 100644 --- a/rpc/client/call_options.go +++ b/rpc/client/call_options.go @@ -8,7 +8,7 @@ import ( type CallOption func(*callParameters) type callParameters struct { - ctx context.Context + ctx context.Context // nolint:containedctx } func defaultCallParameters() *callParameters { diff --git a/signature/body.go b/signature/body.go index a160ed3..f537359 100644 --- a/signature/body.go +++ b/signature/body.go @@ -10,6 +10,7 @@ import ( "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session" ) +// nolint:funlen func serviceMessageBody(req interface{}) stableMarshaler { switch v := req.(type) { default: