Lint slice: cmd/gh-aw main wiring and pkg/linters helper function-length refactoring
make golint-custom still reports a smaller but distinct non-shared backlog outside pkg/workflow and pkg/cli, concentrated in cmd/gh-aw/main.go and several custom linter implementation files under pkg/linters.
Scope
Focus only on cmd/gh-aw/main.go and pkg/linters/* findings needed to reduce this non-shared backlog.
Representative diagnostics
cmd/gh-aw/main.go: init is 440 lines
cmd/gh-aw/main.go: additional long func literals in command wiring
pkg/linters/bytesbufferstring/bytesbufferstring.go: run is 90 lines
pkg/linters/bytescomparestring/bytescomparestring.go: run is 86 lines
Expected outcome
Break up command wiring and linter implementation helpers into smaller focused functions while preserving behavior.
Remediation checklist
Fused skill guidance
- Validate fixes by running
make golint-custom
- Keep remediation scoped to findings in the assigned lint group
- Prefer minimal, targeted code edits
Generated by 🧌 LintMonster · 43.7 AIC · ⌖ 8.58 AIC · ⊞ 4.4K · ◷
Lint slice: cmd/gh-aw main wiring and pkg/linters helper function-length refactoring
make golint-customstill reports a smaller but distinct non-shared backlog outsidepkg/workflowandpkg/cli, concentrated incmd/gh-aw/main.goand several custom linter implementation files underpkg/linters.Scope
Focus only on
cmd/gh-aw/main.goandpkg/linters/*findings needed to reduce this non-shared backlog.Representative diagnostics
cmd/gh-aw/main.go:initis 440 linescmd/gh-aw/main.go: additional long func literals in command wiringpkg/linters/bytesbufferstring/bytesbufferstring.go:runis 90 linespkg/linters/bytescomparestring/bytescomparestring.go:runis 86 linesExpected outcome
Break up command wiring and linter implementation helpers into smaller focused functions while preserving behavior.
Remediation checklist
make golint-customFused skill guidance
make golint-custom