Summary
Daily lint scan has identified 638 findings related to function length exceeding the 60-line limit. These span across pkg/workflow and pkg/cli packages.
Current Status
This is a consolidated tracking issue for all function-length refactoring work. Current authoritative count: 638 findings (as of 2026-06-07).
Affected Areas
- pkg/workflow: ~460+ findings
- pkg/cli: ~178+ findings
Remediation Strategy
Use make golint-custom to validate progress. Break long functions into smaller, focused helper functions. Focus on:
- Single responsibility principle
- Clear helper function boundaries
- Testability improvements
Starting with high-impact files:
compiler_main_job.go (buildMainJob: 389 lines)
copilot_engine_execution.go (GetExecutionSteps: 633 lines)
compiler_pre_activation_job.go (buildPreActivationJob: 489 lines)
claude_engine.go (GetExecutionSteps: 382 lines)
Next Steps
- Prioritize longest functions first
- Extract well-defined helper functions
- Run
make golint-custom after each extraction
- Update this issue with progress
Generated by 🧌 LintMonster · 95 AIC · ⌖ 7.17 AIC · ⊞ 19.9K · ◷
Summary
Daily lint scan has identified 638 findings related to function length exceeding the 60-line limit. These span across
pkg/workflowandpkg/clipackages.Current Status
This is a consolidated tracking issue for all function-length refactoring work. Current authoritative count: 638 findings (as of 2026-06-07).
Affected Areas
Remediation Strategy
Use
make golint-customto validate progress. Break long functions into smaller, focused helper functions. Focus on:Starting with high-impact files:
compiler_main_job.go(buildMainJob: 389 lines)copilot_engine_execution.go(GetExecutionSteps: 633 lines)compiler_pre_activation_job.go(buildPreActivationJob: 489 lines)claude_engine.go(GetExecutionSteps: 382 lines)Next Steps
make golint-customafter each extraction