Skip to content

Commit e38b605

Browse files
committed
Ignore prealloc check in linter config
It blocks var slice definition and have to switch to make. We cherry-pick some codes from upstream block this rule and I feel there’s no need to fix them at this moment.
1 parent 5bbe4f6 commit e38b605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ linters:
3636
- lll
3737
- misspell
3838
- nakedret
39-
- prealloc
39+
# - prealloc
4040
- staticcheck
4141
- typecheck
4242
- unconvert

0 commit comments

Comments
 (0)