chore: Run go mod tidy #1657
ci.yaml
on: push
Static analysis and linting
1m 35s
Codespell
8s
Matrix: Build
Matrix: Helm chart Lint
Matrix: Integration and E2E tests
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)
|