Repository navigation
fix(ci): preserve explicit embedded struct literals - #71209
Conversation
Disable modernize's embedlit rule to avoid requiring a repository-wide Go 1.27 syntax rewrite in the full CGO lint scan. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based 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.
|
|
✅ 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.
|
There was a problem hiding this comment.
Skills-Based Review 🧠
Fallback heuristic used (trivial single-line config change; skill agent not warranted). Change type: CI/lint config fix. No applicable skill findings.
📋 Assessment
- Single-line addition to
.golangci.ymldisablingmodernize'sembedlitrule, with an inline comment explaining rationale — matches the existing documentation style used for the other disabled rules in the same block (errorsastype,reflecttypeassert,stringscut). - Scope is narrow: only the
embedlitcheck is disabled; all othermodernizechecks and linters remain enabled, avoiding a repository-wide rewrite as intended. - No code behavior change — nothing here requires regression tests (
/diagnosing-bugs) or test-first coverage (/tdd). - Consistent with existing config conventions (
/codebase-design) — no new abstractions or naming introduced.
No actionable issues found.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · ~16 AIC · ⌖ ~15 AIC · ⊞ 10.2K
Comment /matt to run again
There was a problem hiding this comment.
Verdict: approve
No actionable blocking issues found in the single-line linter configuration change. Disabling modernize's embedlit rule is consistent with the stated repository-wide existing findings and preserves the remaining lint checks; the PR description reports validation with the pinned linter.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
🟢 Approval recommended
The one-line configuration change matches the stated intent, preserves unrelated checks, and has no identified blocking issues.
No open issues 🎉
What changed in this PR
This PR adjusts gh-aw’s Go lint configuration to preserve explicit embedded struct literals without a repository-wide rewrite.
Changes:
- Disables only the
modernizeanalyzer’sembedlitrule. - Documents the rationale inline while leaving other lint checks unchanged.
| File | Description |
|---|---|
.golangci.yml |
Adds embedlit to the disabled modernization rules. |
Review effort: Max
|
🎉 This pull request is included in a new release. Release: |
The CGO full Go lint scan fails because
modernize'sembedlitrule flags 1,196 existing embedded struct literals. Disable only this rule to preserve the existing explicit style without a repository-wide syntax rewrite; all other enabled lint checks remain active.Validation:
make golint, a full scan with CI-pinnedgolangci-lintv2.15.0, andPATH="/opt/homebrew/bin:$PATH" make agent-report-progresspassed.