Skip to content

Commit 360b636

Browse files
authored
Merge pull request #3374 from dongjiang1989/add-golangci-lint-rule
🌱 Add depguard golangci-linter for forbid sort pkg
2 parents 0f049b8 + 9d4a45c commit 360b636

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)