Skip to content

Commit f7a10c9

Browse files
committed
fix golangci errors
Error: G104: Errors unhandled. (gosec) Error: G104: Errors unhandled. (gosec) Error: G104: Errors unhandled. (gosec)
1 parent ac8b1c9 commit f7a10c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.golangci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ linters-settings:
1515
check-type-assertions: true
1616
check-blank: true
1717
disable-default-exclusions: true
18+
exclude-functions:
19+
- '(*bytes.Buffer).Write' # always returns nil error
20+
- '(*github.com/valyala/bytebufferpool.ByteBuffer).Write' # always returns nil error
21+
- '(*github.com/valyala/bytebufferpool.ByteBuffer).WriteByte' # always returns nil error
22+
- '(*github.com/valyala/bytebufferpool.ByteBuffer).WriteString' # always returns nil error
1823

1924
errchkjson:
2025
report-no-exported: true

0 commit comments

Comments
 (0)