Overview
Daily lint scan identified 2408 functions exceeding 60-line limit (max 60 lines per custom linter).
Assignment Summary
- Category: Function complexity / cyclomatic complexity
- Primary Scope:
pkg/workflow/ subdirectory (~2400 findings)
- Secondary Scope:
pkg/cli/, pkg/actionpins/, others (~8 findings)
- Rule: Custom linter limit is 60 lines per function; violations suggest breaking into smaller helper functions
Representative Violations
Top 5 by excess lines:
pkg/workflow/claude_tools.go:168 - computeAllowedClaudeToolsString() is 360 lines (300 over limit)
pkg/workflow/compiler_orchestrator_engine.go:35 - setupEngineAndImports() is 391 lines (331 over limit)
pkg/workflow/compiler_pre_activation_job.go:20 - buildPreActivationJob() is 486 lines (426 over limit)
pkg/workflow/compiler_main_job.go:26 - buildMainJob() is 374 lines (314 over limit)
pkg/workflow/copilot_engine_execution.go:41 - GetExecutionSteps() is 491 lines (431 over limit)
Full list: lint-diagnostics.txt
Remediation Strategy
✅ Skill Guidance: Use .github/skills/developer/SKILL.md — validate pkg/validation split strategy (refactoring limits 100–200 lines/validator, 300 line hard limit)
For each function:
- Extract logical sub-blocks into private helper functions
- Aim for 50–70 lines per function after refactoring
- Validate with
make golint-custom after changes
- Test affected functionality:
go test -v -run "Test.*" ./pkg/workflow/ ./pkg/cli/ ./pkg/actionpins/
Validation Checklist
Expected Outcome
All 2408 function-length violations resolved. No regressions in tests or compilation.
Generated by 🧌 LintMonster · ● hai45 109K · ◷
Overview
Daily lint scan identified 2408 functions exceeding 60-line limit (max 60 lines per custom linter).
Assignment Summary
pkg/workflow/subdirectory (~2400 findings)pkg/cli/,pkg/actionpins/, others (~8 findings)Representative Violations
Top 5 by excess lines:
pkg/workflow/claude_tools.go:168-computeAllowedClaudeToolsString()is 360 lines (300 over limit)pkg/workflow/compiler_orchestrator_engine.go:35-setupEngineAndImports()is 391 lines (331 over limit)pkg/workflow/compiler_pre_activation_job.go:20-buildPreActivationJob()is 486 lines (426 over limit)pkg/workflow/compiler_main_job.go:26-buildMainJob()is 374 lines (314 over limit)pkg/workflow/copilot_engine_execution.go:41-GetExecutionSteps()is 491 lines (431 over limit)Full list: lint-diagnostics.txt
Remediation Strategy
✅ Skill Guidance: Use
.github/skills/developer/SKILL.md— validatepkg/validationsplit strategy (refactoring limits 100–200 lines/validator, 300 line hard limit)For each function:
make golint-customafter changesgo test -v -run "Test.*" ./pkg/workflow/ ./pkg/cli/ ./pkg/actionpins/Validation Checklist
make golint-custom— verify zero "lines long" violationsgo test -v ./pkg/workflow/ ./pkg/cli/— all passmake build && make recompile— binary and lock files OKExpected Outcome
All 2408 function-length violations resolved. No regressions in tests or compilation.