Repository navigation
[ci-coach] Fix modernize embedlit lint failures in pkg/cli - #71146
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🔬 Test Quality Sentinel is analyzing test quality on this pull request... |
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✂️ Ponytail Reviewer has started processing this pull request |
|
🔎 PR Code Quality Reviewer is reviewing code quality for this pull request... |
|
🔍 Design Decision Gate 🏗️ is checking for design decision records on this pull request... |
There was a problem hiding this comment.
🟡 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
DownloadResultinitialization 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
| Run2Blocked: stats2.Blocked, | ||
| Run2Status: classifyFirewallDomainStatus(stats2), | ||
| Domain: domain, | ||
| Status: "new", |
|
🎉 This pull request is included in a new release. Release: |

Summary
Pre-flight
make lintfailed ingolintwith 3modernize/embedlitissues. Removed redundant embedded-type names from struct literals (promoted fields).Changes
pkg/cli/audit_analysis_fanout.go,audit_cross_run.go,audit_diff.goValidation Results
make fmtandgo build ./pkg/cli/pass. golangci-lint is not installed in this sandbox, so lint was not re-run.test-unitalso failed pre-flight but produced no log; not addressed here.