1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-09-16 08:46:30 +02:00

Disable package name linting (#5294)

This commit is contained in:
qwerty287
2025-07-03 18:29:50 +03:00
committed by GitHub
parent 6631e8bf15
commit fa16d7181a
2 changed files with 8 additions and 1 deletions

View File

@@ -160,6 +160,13 @@ linters:
- strings.Split
- callerName
- securecookie.GenerateRandomKey
revive:
rules:
- name: var-naming
arguments:
- []
- []
- - skipPackageNameChecks: true
exclusions:
generated: lax
presets:

View File

@@ -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
}