Skip to content

fixes/ST1001-linter #9727

fixes/ST1001-linter

fixes/ST1001-linter #9727

Re-run triggered November 17, 2025 14:18
Status Failure
Total duration 3m 59s
Artifacts –

knative-style.yaml

on: pull_request
style  /  changes
3s
style / changes
style  /  ...  /  Auto-format and Check
19s
style / Golang / Auto-format and Check
style  /  ...  /  Lint
3m 45s
style / Golang / Lint
style  /  ...  /  Do Not Submit
7s
style / Golang / Do Not Submit
style  /  ...  /  shell
0s
style / suggester / shell
style  /  ...  /  yaml
26s
style / suggester / yaml
style  /  ...  /  github_actions
0s
style / suggester / github_actions
Matrix: style / Golang / Boilerplate Check
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 4 warnings
style / Golang / Auto-format and Check
Process completed with exit code 1.
style / Golang / Auto-format and Check: test/rekt/features/kafka_source.go#L0
Please run goimports. diff --git a/test/rekt/features/kafka_source.go b/test/rekt/features/kafka_source.go index 25958b1..6dd0ef6 100644 --- a/test/rekt/features/kafka_source.go +++ b/test/rekt/features/kafka_source.go @@ -70,8 +70,6 @@ const ( PlainMech = "plain" ) - - func SetupAndCleanupKafkaSources(prefix string, n int) *feature.Feature { f := SetupKafkaSources(prefix, n) f.Teardown("cleanup resources", f.DeleteResources)
style / Golang / Auto-format and Check: test/e2e_source/helpers/kafka_source.go#L0
Please run goimports. diff --git a/test/e2e_source/helpers/kafka_source.go b/test/e2e_source/helpers/kafka_source.go index 3a74cb5..1234e12 100644 --- a/test/e2e_source/helpers/kafka_source.go +++ b/test/e2e_source/helpers/kafka_source.go @@ -225,4 +225,4 @@ func testKafkaSource(t *testing.T, Group: consumerGroup, }, expectedLag) require.Nil(t, err, "Failed to verify committed offset") -} \ No newline at end of file +}
style / Golang / Auto-format and Check: test/e2e_sink/kafka_sink.go#L0
Please run goimports. diff --git a/test/e2e_sink/kafka_sink.go b/test/e2e_sink/kafka_sink.go index 2d80a2f..bc780d7 100644 --- a/test/e2e_sink/kafka_sink.go +++ b/test/e2e_sink/kafka_sink.go @@ -41,7 +41,7 @@ const ( ) func RunTestKafkaSink(t *testing.T, mode string, sp testpkgtesting.SecretProvider, opts ...func(kss *eventingv1alpha1.KafkaSinkSpec) error) { - testpkg.RunMultiple(t, func(t *testing.T) { + testpkg.RunMultiple(t, func(t *testing.T) { ctx := context.Background()
style / Golang / Auto-format and Check: control-plane/pkg/reconciler/testing/objects_broker.go#L0
Please run goimports. diff --git a/control-plane/pkg/reconciler/testing/objects_broker.go b/control-plane/pkg/reconciler/testing/objects_broker.go index 50df54f..7a86d09 100644 --- a/control-plane/pkg/reconciler/testing/objects_broker.go +++ b/control-plane/pkg/reconciler/testing/objects_broker.go @@ -516,4 +516,4 @@ func getKafkaTopic() string { panic("Failed to create broker topic name") } return topicName -} \ No newline at end of file +}
style / Golang / Auto-format and Check: control-plane/pkg/reconciler/testing/factory.go#L0
Please run goimports. diff --git a/control-plane/pkg/reconciler/testing/factory.go b/control-plane/pkg/reconciler/testing/factory.go index 467ea33..4baf316 100644 --- a/control-plane/pkg/reconciler/testing/factory.go +++ b/control-plane/pkg/reconciler/testing/factory.go @@ -54,7 +54,7 @@ type Ctor func(ctx context.Context, listers *Listers, env *config.Env, row *rtes func NewFactory(env *config.Env, ctor Ctor) rtesting.Factory { return func(t *testing.T, row *rtesting.TableRow) (pkgcontroller.Reconciler, rtesting.ActionRecorderList, rtesting.EventList) { - listers := newListers(row.Objects) + listers := newListers(row.Objects) var ctx context.Context if row.Ctx != nil { ctx = row.Ctx
style / Golang / Auto-format and Check: control-plane/pkg/reconciler/consumergroup/consumergroup.go#L0
Please run goimports. diff --git a/control-plane/pkg/reconciler/consumergroup/consumergroup.go b/control-plane/pkg/reconciler/consumergroup/consumergroup.go index 8ae5fa6..8a2637a 100644 --- a/control-plane/pkg/reconciler/consumergroup/consumergroup.go +++ b/control-plane/pkg/reconciler/consumergroup/consumergroup.go @@ -812,7 +812,7 @@ func getMetricAttributes(cg *kafkainternals.ConsumerGroup) []attribute.KeyValue if uf == nil { return []attribute.KeyValue{} } - + switch strings.ToLower(uf.Kind) { case "trigger": return []attribute.KeyValue{TriggerNameKey.With(uf.Name), TriggerNamespaceKey.With(cg.Namespace)}
style / Golang / Lint
Process completed with exit code 1.
style / Golang / Lint: test/e2e_source/helpers/kafka_source.go#L228
[EOF Newline] reported by reviewdog 🐶 Missing newline Raw Output: test/e2e_source/helpers/kafka_source.go:228: Missing newline
style / Golang / Lint: control-plane/pkg/reconciler/testing/objects_broker.go#L519
[EOF Newline] reported by reviewdog 🐶 Missing newline Raw Output: control-plane/pkg/reconciler/testing/objects_broker.go:519: Missing newline
style / Golang / Lint
Process completed with exit code 1.
style / Golang / Lint: .golangci.yaml#L25
[trailing whitespace] reported by reviewdog 🐶 Raw Output: .golangci.yaml:25:
style / Golang / Auto-format and Check
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing-kafka-broker/eventing-kafka-broker. Supported file pattern: go.sum
style / Golang / Boilerplate Check (go)
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing-kafka-broker/eventing-kafka-broker. Supported file pattern: go.sum
style / Golang / Boilerplate Check (sh)
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing-kafka-broker/eventing-kafka-broker. Supported file pattern: go.sum
style / Golang / Lint
Restore cache failed: Dependencies file is not found in /home/runner/work/eventing-kafka-broker/eventing-kafka-broker. Supported file pattern: go.sum