Skip to content

Fix staticcheck QF1012 linting errors#20

Merged
Dids merged 2 commits intodependabot/go_modules/go-dependencies-02187dfce7from
copilot/sub-pr-19
Mar 16, 2026
Merged

Fix staticcheck QF1012 linting errors#20
Dids merged 2 commits intodependabot/go_modules/go-dependencies-02187dfce7from
copilot/sub-pr-19

Conversation

Copy link
Contributor

Copilot AI commented Mar 16, 2026

CI Lint job fails due to three QF1012 staticcheck violations introduced with the huh v1.0.0 bump. The fix replaces WriteString(fmt.Sprintf(...)) with the idiomatic fmt.Fprintf(...) in two TUI screen files.

Changes

  • internal/tui/screens/clean.go — fix line 494
  • internal/tui/screens/dashboard_v2.go — fix lines 439 and 445
// Before
content.WriteString(fmt.Sprintf(" Deleting releases... %d/%d", c.deleteIdx, c.countSelected()))
status.WriteString(fmt.Sprintf(" %d %s", len(d.profiles), profileWord))
status.WriteString(fmt.Sprintf(" %d pending", d.pendingSync))

// After
fmt.Fprintf(&content, " Deleting releases... %d/%d", c.deleteIdx, c.countSelected())
fmt.Fprintf(&status, " %d %s", len(d.profiles), profileWord)
fmt.Fprintf(&status, " %d pending", d.pendingSync)

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: Dids <3455449+Dids@users.noreply.github.com>
Copilot AI changed the title [WIP] Update go-dependencies group with 2 updates Fix staticcheck QF1012 linting errors Mar 16, 2026
Copilot AI requested a review from Dids March 16, 2026 11:08
Copilot finished work on behalf of Dids March 16, 2026 11:08
@Dids Dids marked this pull request as ready for review March 16, 2026 11:58
@Dids Dids merged commit d245dec into dependabot/go_modules/go-dependencies-02187dfce7 Mar 16, 2026
@Dids Dids deleted the copilot/sub-pr-19 branch March 16, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants