Skip to content

fix(ci): preserve explicit embedded struct literals - #71209

Merged
pelikhan merged 1 commit into
mainfrom
pelikhan-crispy-tribble
Oct 22, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pelikhan-crispy-tribble

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

The CGO full Go lint scan fails because modernize's embedlit rule 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-pinned golangci-lint v2.15.0, and PATH="/opt/homebrew/bin:$PATH" make agent-report-progress passed.

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>
@pelikhan
pelikhan marked this pull request as ready for review October 22, 2026 19:24
Copilot AI max review requested due to automatic review settings October 22, 2026 19:24
@github-actions

github-actions Bot commented Oct 22, 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

@github-actions

github-actions Bot commented Oct 22, 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 · gpt56 · ~5 AIC · ⌖ ~6 AIC · ⊞ 14.8K · ◷

Generated by Ponytail Reviewer for #71209

@github-actions

github-actions Bot commented Oct 22, 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 · haiku45 · ~8 AIC · ⌖ ~12 AIC · ◇ ~3 AIC · ⊞ 9.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Oct 22, 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 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.

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.yml disabling modernize's embedlit rule, 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 embedlit check is disabled; all other modernize checks 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

@github-actions github-actions Bot 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.

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

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 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 modernize analyzer’s embedlit rule.
  • Documents the rationale inline while leaving other lint checks unchanged.
File Description
.golangci.yml Adds embedlit to the disabled modernization rules.

Review effort: Max

@pelikhan
pelikhan merged commit 9cf24d2 into main Oct 22, 2026
54 checks passed
@pelikhan
pelikhan deleted the pelikhan-crispy-tribble branch October 22, 2026 19:40
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.93.1

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