Skip to content

Commit a1bbc8e

Browse files
committed
Relax goconst on test and config.go files
Signed-off-by: Jonasz Łasut-Balcerzak <jonasz@upbound.io>
1 parent 0dfceae commit a1bbc8e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ linters:
180180
text: "SA1019:.*LegacyManaged is deprecated"
181181
linters:
182182
- staticcheck
183+
# Ease goconst warnings on test files.
184+
- path: _test\.go
185+
linters:
186+
- goconst
187+
# Ease goconst warnings on config.go files as they target terraform resource names.
188+
- path: .*config\.go
189+
linters:
190+
- goconst
183191

184192
formatters:
185193
enable:

0 commit comments

Comments
 (0)