We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ced66f2 commit 4c820d3Copy full SHA for 4c820d3
.golangci.yml
@@ -7,6 +7,7 @@ linters:
7
- dupword # Detects duplicate words.
8
- durationcheck
9
- errchkjson
10
+ - forbidigo
11
- gocritic # Metalinter; detects bugs, performance, and styling issues.
12
- gocyclo
13
- gofumpt # Detects whether code was gofumpt-ed.
@@ -66,6 +67,11 @@ linters-settings:
66
67
desc: Use github.com/google/uuid instead.
68
- pkg: "io/ioutil"
69
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
70
+ forbidigo:
71
+ forbid:
72
+ - pkg: ^regexp$
73
+ p: ^regexp\.MustCompile
74
+ msg: Use internal/lazyregexp.New instead.
75
gocyclo:
76
min-complexity: 16
77
gosec:
0 commit comments