Skip to content

Commit 88435a3

Browse files
authored
Skip mocks from linter (#2382)
Skip mocks and zz_generated files from linter Signed-off-by: Juan Antonio Osorio <[email protected]>
1 parent f5d1dfa commit 88435a3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.golangci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,33 @@ linters:
107107
- linters:
108108
- lll
109109
path: .golangci.yml
110+
# These are auto-generated, so it makes no sense including them.
111+
- linters:
112+
- dupl
113+
- errcheck
114+
- gci
115+
- gocyclo
116+
- gosec
117+
- lll
118+
path: (.*)mock_(.+)\.go
119+
# These are auto-generated, so it makes no sense including them.
120+
- linters:
121+
- dupl
122+
- errcheck
123+
- gci
124+
- gocyclo
125+
- gosec
126+
- lll
127+
path: (.*)zz_generated\.deepcopy\.go
128+
# This is auto-generated, so it makes no sense including it.
129+
- linters:
130+
- dupl
131+
- errcheck
132+
- gci
133+
- gocyclo
134+
- gosec
135+
- lll
136+
path: docs/server/docs.go
110137
paths:
111138
- third_party$
112139
- builtin$

0 commit comments

Comments
 (0)