Function Length Refactoring (660 largefunc findings)
Current Status: 660 functions in pkg/workflow/ and pkg/cli/ exceed the 60-line limit.
Affected Subsystems:
- pkg/workflow/ (majority): Compiler, engines (Claude/Codex/Copilot), checkout management, cache, caching logic
- pkg/cli/ (significant subset): Command handlers, manifest management, auditing, experiments, logging
- Other packages: pkg/github, pkg/parser (smaller counts)
Root Cause: Complex agentic workflow compilation logic has grown over time without proportional refactoring of helper functions.
Expected Outcome: Methodically refactor long functions into smaller, focused helper functions; maintain test coverage and behavioral correctness.
Strategy:
- Prioritize functions with highest line count (300+, 200+, etc.)
- Extract cohesive logical blocks into separate helpers
- Run
make golint-custom after each refactoring slice
- Update this tracking issue with completed slices
Remediation Checklist:
Generated by 🧌 LintMonster · 14.1 AIC · ⌖ 8.84 AIC · ⊞ 4.7K · ◷
Function Length Refactoring (660 largefunc findings)
Current Status: 660 functions in
pkg/workflow/andpkg/cli/exceed the 60-line limit.Affected Subsystems:
Root Cause: Complex agentic workflow compilation logic has grown over time without proportional refactoring of helper functions.
Expected Outcome: Methodically refactor long functions into smaller, focused helper functions; maintain test coverage and behavioral correctness.
Strategy:
make golint-customafter each refactoring sliceRemediation Checklist:
make golint-custompasses after each slice