Skip to content

Commit 4ab98fc

Browse files
committed
🌱 (chore): enforce usage of stdlib errors and enable wrapcheck via golangci-lint
1 parent 23b74ea commit 4ab98fc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎.golangci.yml

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ issues:
1717
- gosec
1818

1919
linters-settings:
20+
depguard:
21+
rules:
22+
main:
23+
list-mode: original
24+
deny:
25+
- pkg: "github.com/pkg/errors"
26+
desc: Should be replaced by standard lib errors package
2027
govet:
2128
enable-all: true
2229
disable:
@@ -69,6 +76,7 @@ linters:
6976
enable:
7077
- asciicheck
7178
- bidichk
79+
- depguard
7280
- dupl
7381
- errcheck
7482
- copyloopvar
@@ -92,5 +100,6 @@ linters:
92100
- unconvert
93101
- unparam
94102
- unused
103+
- wrapcheck
95104
- whitespace
96105

0 commit comments

Comments
 (0)