Skip to content

Commit 9c35bed

Browse files
committed
add exlusion rules
1 parent 1123d06 commit 9c35bed

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.golangci.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
# Over time we should try tightening some of these.
33

44
linters-settings:
5+
exhaustruct:
6+
exclude:
7+
- 'clibase\.Cmd'
8+
- 'clibase\.Option'
9+
- 'codersdk\.Response'
10+
- 'codersdk\.\w+Request'
11+
- 'http\.Client'
12+
- "TypescriptType"
513
gocognit:
614
min-complexity: 46 # Min code complexity (def 30).
715

@@ -196,6 +204,9 @@ issues:
196204
- errcheck
197205
- forcetypeassert
198206
- exhaustruct # This is unhelpful in tests.
207+
- path: scripts/*
208+
linters:
209+
- exhaustruct
199210

200211
fix: true
201212
max-issues-per-linter: 0

0 commit comments

Comments
 (0)