Add golangci-lint to github workflow #7556
+23
−0
Closed
Annotations
19 errors and 1 warning
golangci-lint - balancer:
balancer/main.go#L108
Error return value of `controller.Run` is not checked (errcheck)
|
golangci-lint - balancer:
balancer/main.go#L93
SA4006: this value of `err` is never used (staticcheck)
|
golangci-lint - balancer:
balancer/pkg/controller/controller_test.go#L214
Error return value of `testContext.controller.Run` is not checked (errcheck)
|
golangci-lint - balancer:
balancer/pkg/controller/core.go#L52
func `newBalancerStatusInfo` is unused (unused)
|
golangci-lint - balancer:
balancer/pkg/controller/controller_test.go#L43
field `core` is unused (unused)
|
golangci-lint - balancer:
balancer/pkg/controller/conditions.go#L35
printf: non-constant format string in call to k8s.io/autoscaler/balancer/pkg/controller.setConditionInList (govet)
|
golangci-lint - balancer:
balancer/pkg/pods/summary.go#L49
S1023: redundant break statement (gosimple)
|
golangci-lint - balancer:
balancer/pkg/pods/summary.go#L55
S1023: redundant break statement (gosimple)
|
golangci-lint - balancer
issues found
|
Verify
cannot find package "k8s.io/apimachinery/pkg/util/wait" in any of:
|
Verify
cannot find package "k8s.io/apimachinery/pkg/apis/meta/v1" in any of:
|
Verify
cannot find package "k8s.io/apimachinery/pkg/types" in any of:
|
Verify
cannot find package "k8s.io/apimachinery/pkg/watch" in any of:
|
Verify
cannot find package "k8s.io/api/autoscaling/v2" in any of:
|
Verify
cannot find package "k8s.io/apimachinery/pkg/runtime" in any of:
|
Verify
cannot find package "k8s.io/apimachinery/pkg/runtime/schema" in any of:
|
Verify
cannot find package "k8s.io/apimachinery/pkg/runtime/serializer" in any of:
|
Verify
cannot find package "k8s.io/apimachinery/pkg/util/runtime" in any of:
|
Verify
cannot find package "k8s.io/client-go/rest" in any of:
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading