Skip to content

[ci-coach] Fix modernize embedlit lint failures in pkg/cli - #71146

Merged
pelikhan merged 1 commit into
mainfrom
ci-coach/fix-embedlit-lint-802240b5c3a7a610
Oct 22, 2026
Merged

pelikhan merged 1 commit into
mainfrom
ci-coach/fix-embedlit-lint-802240b5c3a7a610

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Pre-flight make lint failed in golint with 3 modernize/embedlit issues. Removed redundant embedded-type names from struct literals (promoted fields).

Changes

  • pkg/cli/audit_analysis_fanout.go, audit_cross_run.go, audit_diff.go

Validation Results

  • make fmt and go build ./pkg/cli/ pass. golangci-lint is not installed in this sandbox, so lint was not re-run.
  • test-unit also failed pre-flight but produced no log; not addressed here.

Generated by CI Optimization Coach · copilot · auto · 17.2 AIC · ⌖ 1.05 AIC · ⊞ 17.4K · ◷

  • expires on Oct 24, 2026, 5:39 AM UTC-08:00

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review October 22, 2026 13:59
Copilot AI max review requested due to automatic review settings October 22, 2026 13:59
@pelikhan
pelikhan merged commit 1696d44 into main Oct 22, 2026
10 checks passed
@pelikhan
pelikhan deleted the ci-coach/fix-embedlit-lint-802240b5c3a7a610 branch October 22, 2026 13:59
@github-actions

Copy link
Copy Markdown
Contributor Author

🔬 Test Quality Sentinel is analyzing test quality on this pull request...

@github-actions

Copy link
Copy Markdown
Contributor Author

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@github-actions

Copy link
Copy Markdown
Contributor Author

✂️ Ponytail Reviewer has started processing this pull request

@github-actions

Copy link
Copy Markdown
Contributor Author

🔎 PR Code Quality Reviewer is reviewing code quality for this pull request...

@github-actions

Copy link
Copy Markdown
Contributor Author

🔍 Design Decision Gate 🏗️ is checking for design decision records on this pull request...

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.

🟡 Changes recommended

Equivalent embedded literals remain in linted files, so fixing only these three sites does not resolve the full lint failure.

1 open issue
What changed in this PR

Updates three audit-related struct literals in the gh-aw CLI to address modernize/embedlit warnings using syntax supported by the repository’s Go 1.27.3 baseline.

Changes:

  • Initialize embedded firewall status and MCP server fields directly.
  • Simplify DownloadResult initialization for MCP tool usage.
File Description
pkg/​cli/​audit_diff.go Initialize new-domain status directly.
pkg/​cli/​audit_cross_run.go Initialize embedded MCP server statistics directly.
pkg/​cli/​audit_analysis_fanout.go Remove the nested RunAnalysis initializer.

Review effort: Max

Comment thread pkg/cli/audit_diff.go
Run2Blocked: stats2.Blocked,
Run2Status: classifyFirewallDomainStatus(stats2),
Domain: domain,
Status: "new",
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 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