Summary
Current make golint-custom reports 4 targeted non-shared findings outside the shared pkg/workflow + pkg/cli function-length backlog. This slice covers two focused code-smell findings in pkg/cli plus one small long-function backlog in cmd/gh-aw and pkg/linters.
Findings in scope
pkg/cli/mcp_inspect_inspector.go:65: defer inside a loop can delay cleanup until function return
pkg/cli/docker_images.go:231: CheckAndPrepareDockerImages has 9 parameters (limit: 8); use an options struct or equivalent narrow API cleanup
pkg/cli/grant.go:152: hard-coded file path /tmp/gh-aw-grant-policy.yaml; extract a named constant
- Long-function findings outside the shared backlog:
cmd/gh-aw/main.go:288: func literal is 129 lines
cmd/gh-aw/main.go:516: init is 447 lines
cmd/gh-aw/main.go:577: func literal is 72 lines
pkg/linters/stringbytesroundtrip/stringbytesroundtrip.go:52: analyzeRoundTrip is 73 lines
Expected outcome
Resolve the three targeted pkg/cli findings and reduce the remaining non-shared long-function backlog in cmd/gh-aw and pkg/linters with minimal, behavior-preserving edits.
Remediation checklist
Fused skill guidance
- Validate fixes by running
make golint-custom
- Keep remediation scoped to this lint group
- Prefer minimal, targeted code edits
Generated by 🧌 LintMonster · gpt54 · 60.2 AIC · ⌖ 9.02 AIC · ⊞ 4.6K · ◷
Summary
Current
make golint-customreports 4 targeted non-shared findings outside the sharedpkg/workflow+pkg/clifunction-length backlog. This slice covers two focused code-smell findings inpkg/cliplus one small long-function backlog incmd/gh-awandpkg/linters.Findings in scope
pkg/cli/mcp_inspect_inspector.go:65: defer inside a loop can delay cleanup until function returnpkg/cli/docker_images.go:231:CheckAndPrepareDockerImageshas 9 parameters (limit: 8); use an options struct or equivalent narrow API cleanuppkg/cli/grant.go:152: hard-coded file path/tmp/gh-aw-grant-policy.yaml; extract a named constantcmd/gh-aw/main.go:288: func literal is 129 linescmd/gh-aw/main.go:516:initis 447 linescmd/gh-aw/main.go:577: func literal is 72 linespkg/linters/stringbytesroundtrip/stringbytesroundtrip.go:52:analyzeRoundTripis 73 linesExpected outcome
Resolve the three targeted
pkg/clifindings and reduce the remaining non-shared long-function backlog incmd/gh-awandpkg/linterswith minimal, behavior-preserving edits.Remediation checklist
make golint-customFused skill guidance
make golint-custom