Skip to content

fix all lint issues

fix all lint issues #4

Triggered via push August 1, 2025 06:21
Status Failure
Total duration 25s
Artifacts

go-lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: pkg/server/client.go#L58
shadow: declaration of "err" shadows declaration at line 51 (govet)
lint: pkg/config/config.go#L59
shadow: declaration of "err" shadows declaration at line 38 (govet)
lint: pkg/config/config.go#L52
shadow: declaration of "err" shadows declaration at line 38 (govet)
lint: pkg/config/config.go#L48
shadow: declaration of "err" shadows declaration at line 38 (govet)
lint: pkg/server/server.go#L44
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
lint: pkg/server/server.go#L170
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
lint: pkg/server/server.go#L164
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
lint: pkg/server/server.go#L158
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
lint: pkg/server/server.go#L147
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
lint: pkg/server/server.go#L138
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)