Skip to content

Commit 5652b9e

Browse files
authored
fix: resolve staticcheck SA5011 and prealloc lint errors (#88)
Signed-off-by: Yuan Chen <yuanchen8911@gmail.com>
1 parent a243c79 commit 5652b9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.golangci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ linters:
144144
- gosec
145145
- noctx
146146
path: _test\.go
147+
# SA5011 false positive: staticcheck doesn't know t.Fatal stops execution
148+
- linters:
149+
- staticcheck
150+
text: "SA5011"
151+
path: _test\.go
147152
# Relaxed rules for main entry points
148153
- linters:
149154
- funlen

0 commit comments

Comments
 (0)