Skip to content

Commit a9111a3

Browse files
committed
add golangci lint
Signed-off-by: dongjiang <[email protected]>
1 parent d49da30 commit a9111a3

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
@@ -13,6 +13,7 @@ linters:
1313
- bidichk
1414
- bodyclose
1515
- copyloopvar
16+
- depguard
1617
- dogsled
1718
- dupl
1819
- errcheck
@@ -44,6 +45,12 @@ linters:
4445
- unused
4546
- whitespace
4647
settings:
48+
depguard:
49+
rules:
50+
forbid-pkg-errors:
51+
deny:
52+
- pkg: sort
53+
desc: Should be replaced with slices package
4754
forbidigo:
4855
forbid:
4956
- pattern: context.Background

0 commit comments

Comments
 (0)