Skip to content

Commit 7c5fb7a

Browse files
committed
fixes
1 parent e256f68 commit 7c5fb7a

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.golangci.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ linters:
1010
- bodyclose
1111
- depguard
1212
- durationcheck
13+
- errchkjson
1314
- errorlint
1415
- exhaustive
1516
- gocheckcompilerdirectives
@@ -37,7 +38,6 @@ linters:
3738
- zerologlint
3839
disable:
3940
- contextcheck
40-
- errchkjson
4141
settings:
4242
depguard:
4343
rules:
@@ -56,6 +56,14 @@ linters:
5656
desc: The "testing" packages should be used only in tests.
5757
- pkg: github.com/percona/percona-postgresql-operator/internal/testing/*
5858
desc: The "internal/testing" packages should be used only in tests.
59+
tests:
60+
files:
61+
- $test
62+
deny:
63+
- pkg: github.com/pkg/errors
64+
desc: Use the "errors" package unless you are interacting with stack traces.
65+
errchkjson:
66+
check-error-free-encoding: true
5967
exhaustive:
6068
default-signifies-exhaustive: true
6169
gomodguard:
@@ -81,15 +89,17 @@ linters:
8189
alias: $1$2
8290
no-unaliased: true
8391
exclusions:
84-
generated: lax
8592
presets:
8693
- comments
8794
- common-false-positives
8895
- legacy
8996
- std-error-handling
97+
rules:
98+
- linters:
99+
- recvcheck
100+
path: internal/pki/pki.go
101+
text: methods of "(Certificate|PrivateKey)"
90102
paths:
91-
- pkg/generated
92-
- hack
93103
- third_party$
94104
- builtin$
95105
- examples$
@@ -103,10 +113,7 @@ formatters:
103113
- default
104114
- prefix(github.com/percona)
105115
exclusions:
106-
generated: lax
107116
paths:
108-
- pkg/generated
109-
- hack
110117
- third_party$
111118
- builtin$
112119
- examples$

0 commit comments

Comments
 (0)