[7.17](backport #37212) Replace EOL modules: github.com/golang/protobuf by google.golang.org/protobuf #13419
Annotations
11 errors and 2 warnings
|
x-pack/metricbeat/module/gcp/metrics/metrics_requester.go#L54
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
x-pack/metricbeat/module/gcp/metrics/metrics_requester.go#L68
naked return in func `Metric` with 32 lines of code (nakedret)
|
x-pack/metricbeat/module/gcp/metrics/metrics_requester.go#L113
S1017: should replace this if statement with an unconditional strings.TrimSuffix (gosimple)
|
x-pack/metricbeat/module/gcp/metrics/metrics_requester.go#L121
S1017: should replace this if statement with an unconditional strings.TrimSuffix (gosimple)
|
x-pack/metricbeat/module/gcp/metrics/metrics_requester.go#L154
naked return in func `getFilterForMetric` with 57 lines of code (nakedret)
|
x-pack/metricbeat/module/gcp/metrics/metricset.go#L15
import of package `github.com/pkg/errors` is blocked because the module is in the blocked modules list. `errors` and `fmt` are recommended modules. This package is deprecated, use `fmt.Errorf` with `%!w(MISSING)` instead. (gomodguard)
|
x-pack/metricbeat/module/gcp/metrics/metricset.go#L227
Error return value of `event.MetricSetFields.Put` is not checked (errcheck)
|
x-pack/metricbeat/module/gcp/metrics/metricset.go#L282
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
x-pack/metricbeat/module/gcp/metrics/metricset.go#L292
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
x-pack/metricbeat/module/gcp/metrics/metricset.go#L337
Error return value of `hostRootFields.Put` is not checked (errcheck)
|
|
|
The logs for this run have expired and are no longer available.
Loading