Repository navigation
Clarify sprintfbool linter fixture function names - #75687
Conversation
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
✅ 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: 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.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: 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.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: 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.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: 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.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
There was a problem hiding this comment.
🟢 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)
|
🎉 This pull request is included in a new release. Release: |
Five fixture names lacked enough context to identify the
fmt.Sprintfbool scenarios they exercise.bad→badSprintfBoolbadOne→firstBadSprintfBoolbadTwo→secondBadSprintfBoolsingleUseFmt→singleUseSprintfBoolsuppressed→suppressedSprintfBoolDiagnostic