We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 467dc76 commit e4bddf3Copy full SHA for e4bddf3
.golangci.yml
@@ -67,14 +67,19 @@ linters:
67
- noctx # noctx finds sending http request without context.Context
68
- unconvert # Remove unnecessary type conversions
69
- wastedassign # wastedassign finds wasted assignment statements.
70
- - gomodguard # check for blocked dependencies
71
- - depguard
+ - gomodguard # check for blocked dependencies in go.mod
+ - depguard # check for blocked dependencies in Go files
72
- gomoddirectives
73
74
# all available settings of specific linters
75
linters-settings:
76
depguard:
77
rules:
78
+ main:
79
+ list-mode: lax
80
+ deny:
81
+ - pkg: "math/rand$"
82
+ desc: "superseded by math/rand/v2"
83
apache-licensed-code:
84
list-mode: lax
85
files:
0 commit comments