Apply the gopls quick fixes on main #631

Closed
opened 2026-09-24 19:35:55 +00:00 by hexajon · 0 comments
Owner

What

gopls reports findings on main that have quick fixes: tagged switches, fmt.Fprintf in place of WriteString(fmt.Sprintf(...)), split WriteString concatenations, and unused parameters. The commit "style: apply gopls quick fixes" applies them across 15 files.

This work merges before #624. The gopls gate leg in #624 fails on main while these findings are open.

Known problems in the commit

  • internal/service/workflow/finish_result.go: the failResult doc comment still describes the err parameter that the commit removes.
  • internal/mcp/tools_auth.go: the commit also changes a user-visible string. The dash in "unverified - no server check performed" changes from an em-dash to a hyphen. That change is not a gopls quick fix.

Acceptance

  • The quick fixes are on main.
  • The two problems above are resolved before the merge.
  • ./scripts/gate.sh passes.
## What gopls reports findings on main that have quick fixes: tagged switches, `fmt.Fprintf` in place of `WriteString(fmt.Sprintf(...))`, split `WriteString` concatenations, and unused parameters. The commit "style: apply gopls quick fixes" applies them across 15 files. This work merges before #624. The gopls gate leg in #624 fails on main while these findings are open. ## Known problems in the commit - `internal/service/workflow/finish_result.go`: the `failResult` doc comment still describes the `err` parameter that the commit removes. - `internal/mcp/tools_auth.go`: the commit also changes a user-visible string. The dash in "unverified - no server check performed" changes from an em-dash to a hyphen. That change is not a gopls quick fix. ## Acceptance - The quick fixes are on main. - The two problems above are resolved before the merge. - `./scripts/gate.sh` passes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
sixfold-space/madtea#631
No description provided.