Shutdown metrics server gracefully #798
Annotations
6 errors and 1 warning
cmd/run.go#L402
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
|
cmd/run.go#L116
Non-inherited new context, use function like `context.WithXXX` instead (contextcheck)
|
cmd/run.go#L409
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
metrics/utils.go#L18
error returned from interface method should be wrapped: sig: func (net/http.ResponseWriter).Write([]byte) (int, error) (wrapcheck)
|
cmd/run.go#L408
directive `//nolint:gosec` is unused for linter "gosec" (nolintlint)
|
|
metrics/utils.go#L14
unused-parameter: parameter 'code' seems to be unused, consider removing or renaming it as _ (revive)
|
The logs for this run have expired and are no longer available.
Loading