Skip to content

Comments

NO-ISSUE: Fix linting issues#255

Open
pawanpinjarkar wants to merge 1 commit intoopenshift:mainfrom
pawanpinjarkar:fix-lint-errors
Open

NO-ISSUE: Fix linting issues#255
pawanpinjarkar wants to merge 1 commit intoopenshift:mainfrom
pawanpinjarkar:fix-lint-errors

Conversation

@pawanpinjarkar
Copy link
Contributor

Fix golangci-lint warnings in agent-tui

Before: make run

tools/agent_tui/ui/controller.go:14:2: field `rendezvousIPSet` is unused (unused)
tools/agent_tui/ui/rendezvous_ip_select.go:29:21: S1039: unnecessary use of fmt.Sprintf (gosimple)
tools/agent_tui/ui/rendezvous_ip_select.go:86:3: ineffectual assignment to currentItem (ineffassign)
tools/agent_tui/ui/rendezvous_ip_select.go:87:3: ineffectual assignment to updatedItemIndex (ineffassign)
tools/agent_tui/ui/rendezvous_ip_select.go:85:3: SA4006: this value of `previousItem` is never used (staticcheck)
tools/agent_tui/ui/rendezvous_ip_connectivity_fail_modal.go:9:2: SA9004: only the first constant in this group has an explicit type (staticcheck)
tools/agent_tui/ui/rendezvous_ip_save_success_modal.go:11:2: SA9004: only the first constant in this group has an explicit type (staticcheck)

After: make run
No issues found

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 12, 2026
@openshift-ci-robot
Copy link

@pawanpinjarkar: This pull request explicitly references no jira issue.

Details

In response to this:

Fix golangci-lint warnings in agent-tui

Before: make run

tools/agent_tui/ui/controller.go:14:2: field `rendezvousIPSet` is unused (unused)
tools/agent_tui/ui/rendezvous_ip_select.go:29:21: S1039: unnecessary use of fmt.Sprintf (gosimple)
tools/agent_tui/ui/rendezvous_ip_select.go:86:3: ineffectual assignment to currentItem (ineffassign)
tools/agent_tui/ui/rendezvous_ip_select.go:87:3: ineffectual assignment to updatedItemIndex (ineffassign)
tools/agent_tui/ui/rendezvous_ip_select.go:85:3: SA4006: this value of `previousItem` is never used (staticcheck)
tools/agent_tui/ui/rendezvous_ip_connectivity_fail_modal.go:9:2: SA9004: only the first constant in this group has an explicit type (staticcheck)
tools/agent_tui/ui/rendezvous_ip_save_success_modal.go:11:2: SA9004: only the first constant in this group has an explicit type (staticcheck)

After: make run
No issues found

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@pawanpinjarkar
Copy link
Contributor Author

/cc @rwsu @bfournie @andfasano

@openshift-ci
Copy link

openshift-ci bot commented Feb 12, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pawanpinjarkar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 12, 2026
@andfasano
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 13, 2026
@bfournie
Copy link
Contributor

Looks like gofmt is failing

--- a/tools/agent_tui/ui/controller.go
+++ b/tools/agent_tui/ui/controller.go
@@ -9,8 +9,8 @@ type Controller struct {
 	ui      *UI
 	channel chan checks.CheckResult
 
-	checks          map[string]checks.CheckResult
-	state           bool
+	checks map[string]checks.CheckResult
+	state  bool
 }

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 13, 2026
@pawanpinjarkar
Copy link
Contributor Author

@bfournie I have fixed the gofmt issue. The reason it was not detected when I ran make lint locally is due to gofmt not explicitly enabled. I also see there is no .golangci.yaml file like other repos. I will create a new PR to add that file and fix more lint issues.

@openshift-ci
Copy link

openshift-ci bot commented Feb 16, 2026

@pawanpinjarkar: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@pawanpinjarkar
Copy link
Contributor Author

/verified by ci/prow/gofmt

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Feb 16, 2026
@openshift-ci-robot
Copy link

@pawanpinjarkar: This PR has been marked as verified by [ci/prow/gofmt](https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_agent-installer-utils/255/pull-ci-openshift-agent-installer-utils-main-gofmt/2023442574110363648).

Details

In response to this:

/verified by ci/prow/gofmt

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@bfournie
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants