Skip to content

Commit 9d4a45c

Browse files
committed
add golangci lint rule
Signed-off-by: dongjiang <[email protected]>
1 parent 0ddbc52 commit 9d4a45c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.golangci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ linters:
1111
- bidichk
1212
- bodyclose
1313
- copyloopvar
14+
- depguard
1415
- dogsled
1516
- dupl
1617
- errcheck
@@ -42,6 +43,12 @@ linters:
4243
- unused
4344
- whitespace
4445
settings:
46+
depguard:
47+
rules:
48+
forbid-pkg-errors:
49+
deny:
50+
- pkg: sort
51+
desc: Should be replaced with slices package
4552
forbidigo:
4653
forbid:
4754
- pattern: context.Background

0 commit comments

Comments
 (0)