Summary
Custom lint scan on 2026-06-29 found 10 long-function findings outside pkg/workflow and pkg/cli. The root cause is the same largefunc rule, but these findings live in non-shared subsystems and should be tackled separately from the main function-length backlog.
Findings
pkg/console/console.go:190 — RenderTable
pkg/github/label_objective_mapping.go:36 — ComputeObjectiveValue
pkg/parser/schema_suggestions.go:649 — findFieldLocationsInSchema
cmd/gh-aw/main.go:283 — func literal
cmd/gh-aw/main.go:501 — init
cmd/gh-aw/main.go:562 — func literal
pkg/linters/errorfwrapv/errorfwrapv.go:53 — run
pkg/linters/hardcodedfilepath/hardcodedfilepath.go:223 — run
pkg/linters/seenmapbool/seenmapbool.go:65 — inspectBody
pkg/linters/timeafterleak/timeafterleak.go:91 — isInsideLoopSelectComm
Expected outcome
Break up the reported functions into smaller helpers without changing behavior and clear this non-workflow/non-cli subset of largefunc diagnostics.
Remediation checklist
Copilot instructions
Use the minimum relevant guidance: prefer many small focused helpers over enlarging already-large files, keep edits tightly scoped to these reported functions, and validate with make golint-custom.
Generated by 🧌 LintMonster · 43.5 AIC · ⌖ 10.4 AIC · ⊞ 4.4K · ◷
Summary
Custom lint scan on 2026-06-29 found 10 long-function findings outside
pkg/workflowandpkg/cli. The root cause is the same largefunc rule, but these findings live in non-shared subsystems and should be tackled separately from the main function-length backlog.Findings
pkg/console/console.go:190—RenderTablepkg/github/label_objective_mapping.go:36—ComputeObjectiveValuepkg/parser/schema_suggestions.go:649—findFieldLocationsInSchemacmd/gh-aw/main.go:283— func literalcmd/gh-aw/main.go:501—initcmd/gh-aw/main.go:562— func literalpkg/linters/errorfwrapv/errorfwrapv.go:53—runpkg/linters/hardcodedfilepath/hardcodedfilepath.go:223—runpkg/linters/seenmapbool/seenmapbool.go:65—inspectBodypkg/linters/timeafterleak/timeafterleak.go:91—isInsideLoopSelectCommExpected outcome
Break up the reported functions into smaller helpers without changing behavior and clear this non-workflow/non-cli subset of largefunc diagnostics.
Remediation checklist
pkg/workflow/pkg/clifunction-length backlogmake golint-customCopilot instructions
Use the minimum relevant guidance: prefer many small focused helpers over enlarging already-large files, keep edits tightly scoped to these reported functions, and validate with
make golint-custom.