From fa16d7181aa4d591487255bc9346a612221c678d Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Thu, 3 Jul 2025 18:29:50 +0300 Subject: [PATCH] Disable package name linting (#5294) --- .golangci.yaml | 7 +++++++ server/store/context.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index d77c5aab5..3158163bc 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -160,6 +160,13 @@ linters: - strings.Split - callerName - securecookie.GenerateRandomKey + revive: + rules: + - name: var-naming + arguments: + - [] + - [] + - - skipPackageNameChecks: true exclusions: generated: lax presets: diff --git a/server/store/context.go b/server/store/context.go index 6615302f3..f094e3478 100644 --- a/server/store/context.go +++ b/server/store/context.go @@ -40,5 +40,5 @@ func ToContext(c *gin.Context, store Store) { } func InjectToContext(ctx context.Context, store Store) context.Context { - return context.WithValue(ctx, key, store) //nolint:revive,staticcheck + return context.WithValue(ctx, key, store) //nolint:staticcheck }