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 }