Skip to content

Commit 79cacef

Browse files
committed
chore(lint): add revive exception rules for already existing packages
Signed-off-by: Marcin Franczyk <[email protected]>
1 parent 9917344 commit 79cacef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ linters:
8787
text: 'SA1019: (.+)Secret is deprecated: Use AdditionalSecrets instead.'
8888
- path: pkg/config/validation.go
8989
text: 'SA1019: (.+)Secret is deprecated: Use AdditionalSecrets instead.'
90+
# The following exceptions apply only to existing packages that need refactoring.
91+
# The rule remains enabled globally.
92+
- path: ^pkg/(cli/util|server/types|snapshot/types|syncer/types|util|plugin/types)/[^/]+\.go$
93+
linters: [revive]
94+
text: avoid meaningless package names
9095
paths:
9196
- licenses
9297
# Paths below are added by 'golangci-lint migrate' when migrating from v1 to v2. They are the

0 commit comments

Comments
 (0)