Skip to content

Clarify sprintfbool linter fixture function names - #75687

Merged
pelikhan merged 2 commits into
mainfrom
copilot/function-namer-go-rename-plan
Nov 7, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/function-namer-go-rename-plan

Conversation

Copilot AI commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Five fixture names lacked enough context to identify the fmt.Sprintf bool scenarios they exercise.

  • Targeted renames
    • bad → badSprintfBool
    • badOne → firstBadSprintfBool
    • badTwo → secondBadSprintfBool
    • singleUseFmt → singleUseSprintfBool
    • suppressed → suppressedSprintfBoolDiagnostic
  • Fixture consistency: Update matching comments and suggested-fix golden files. Preserve function bodies, expected diagnostics, and the remaining 15 names.

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI changed the title [WIP] Plan to rename Go functions in sprintfbool package Clarify sprintfbool linter fixture function names Nov 7, 2026
Copilot AI requested a review from gh-aw-bot November 7, 2026 14:31
@pelikhan
pelikhan marked this pull request as ready for review November 7, 2026 14:48
Copilot AI adaptive review requested due to automatic review settings November 7, 2026 14:48
@pelikhan
pelikhan merged commit 7807e8b into main Nov 7, 2026
57 checks passed
@pelikhan
pelikhan deleted the copilot/function-namer-go-rename-plan branch November 7, 2026 14:48
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · routed: gpt56 max · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from PR Specification Reviewer · gpt56 · ~1 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷

Generated by PR Specification Reviewer for #75687

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · routed: gpt56 max · ~2 AIC · ⌖ ~2 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · routed: gpt56 max · ~2 AIC · ⌖ ~1 AIC · ⊞ 118 · ◷

Generated by Ponytail Reviewer for #75687

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes consistently rename the targeted fixtures and matching golden outputs while preserving their bodies and expected diagnostics, with no active review issues identified.

No open issues 🎉

What changed in this PR

Renames five ambiguous sprintfbool linter fixture functions to clearly identify the fmt.Sprintf boolean scenarios they test, while preserving fixture behavior and diagnostics.

Changes:

  • Renamed the five targeted fixture functions with descriptive names.
  • Updated matching comments and suggested-fix golden files.
  • Preserved function bodies, expected diagnostics, and remaining fixture names.
File Description
pkg/​linters/​sprintfbool/​testdata/​src/​sprintfbool/​sprintfbool.go.golden Mirrors the source fixture renames in expected suggested-fix output.
pkg/​linters/​sprintfbool/​testdata/​src/​sprintfbool/​sprintfbool.go Renames the primary and suppressed fixtures and updates comments.
pkg/​linters/​sprintfbool/​testdata/​src/​sprintfbool/​singleuse.go.golden Mirrors the single-use fixture rename in golden output.
pkg/​linters/​sprintfbool/​testdata/​src/​sprintfbool/​singleuse.go Renames the single-use fmt.Sprintf fixture.
pkg/​linters/​sprintfbool/​testdata/​src/​sprintfbool/​multiple.go.golden Mirrors the multiple-diagnostic fixture renames in golden output.
pkg/​linters/​sprintfbool/​testdata/​src/​sprintfbool/​multiple.go Renames both multiple-diagnostic fixtures.

Review effort: Lite (auto)

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.2

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.

[function-namer] Go function rename plan: pkg/linters/sprintfbool/testdata/src/sprintfbool

4 participants