Skip to content

chore: Run go mod tidy #1657

chore: Run go mod tidy

chore: Run go mod tidy #1657

Triggered via push December 7, 2023 23:30
Status Success
Total duration 6m 6s
Artifacts

ci.yaml

on: push
Static analysis and linting
1m 35s
Static analysis and linting
Codespell
8s
Codespell
Matrix: Build
Matrix: Helm chart Lint
Matrix: Integration and E2E tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Static analysis and linting: internal/adapter/adapter.go#L72
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"external metrics provider must be configured\")" (goerr113)
Static analysis and linting: internal/provider/newrelic/provider.go#L54
NewDirectProvider returns interface (sigs.k8s.io/custom-metrics-apiserver/pkg/provider.ExternalMetricsProvider) (ireturn)
Static analysis and linting: internal/provider/newrelic/provider_test.go#L585
testProvider returns interface (sigs.k8s.io/custom-metrics-apiserver/pkg/provider.ExternalMetricsProvider) (ireturn)
Static analysis and linting: internal/provider/cache/provider_test.go#L365
getTestCacheProvider returns interface (sigs.k8s.io/custom-metrics-apiserver/pkg/provider.ExternalMetricsProvider) (ireturn)
Static analysis and linting: internal/adapter/adapter.go#L50
NewAdapter returns interface (github.com/newrelic/newrelic-k8s-metrics-adapter/internal/adapter.Adapter) (ireturn)
Static analysis and linting: internal/provider/newrelic/query.go#L44
missing cases in switch of type selection.Operator: selection.DoubleEquals, selection.NotEquals, selection.GreaterThan, selection.LessThan (exhaustive)
Static analysis and linting: internal/provider/newrelic/provider.go#L56
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"an accountID cannot be 0\")" (goerr113)
Static analysis and linting: internal/provider/newrelic/provider.go#L60
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"a NRDBClient cannot be nil\")" (goerr113)
Static analysis and linting: internal/provider/newrelic/provider.go#L100
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"may not contain uppercase char\")" (goerr113)
Static analysis and linting: internal/provider/newrelic/provider.go#L104
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"is not a valid path segment name: %v\", strings.Join(errs, \",\"))" (goerr113)