Function Length Violations
Category: Code complexity / function length
Scope: pkg/parser/ and pkg/workflow/
Finding Count: ~2380 functions exceeding 60-line limit
Limit: 60 lines per function
Representative Issues
pkg/parser/ (34 functions)
processImportsFromFrontmatterWithManifestAndSource() - 492 lines
ParseMCPConfig() - 253 lines
processBuiltinMCPTool() - 172 lines
ScatterSchedule() - 441 lines
- And 30 more functions in: frontmatter_.go, import_.go, mcp.go, remote_fetch.go, etc.
pkg/workflow/ (2346 functions)
GetExecutionSteps() in claude_engine.go - 373 lines
buildMainJob() - 372 lines
setupEngineAndImports() - 391 lines
computeAllowedClaudeToolsString() - 360 lines
buildPreActivationJob() - 486 lines
- And 2341 more functions across all workflow compilation files
Remediation Checklist
Expected Outcome
All functions in pkg/parser/ and pkg/workflow/ should be ≤60 lines. The make golint-custom linter should report zero violations in this category.
Priority Guidance
- Start with the most egregious offenders (400+ lines)
- Work through files in dependency order: remote_fetch → parser → workflow
- Focus on functions with many responsibilities (candidates for easy extraction)
- Leave test functions for later (lower priority)
Relevant Skills
See skills/developer/SKILL.md for validation architecture and refactoring patterns.
Created by: LintMonster
Report: Daily custom lint scan
Generated by 🧌 LintMonster · ● 601.6K · ◷
Function Length Violations
Category: Code complexity / function length
Scope:
pkg/parser/andpkg/workflow/Finding Count: ~2380 functions exceeding 60-line limit
Limit: 60 lines per function
Representative Issues
pkg/parser/ (34 functions)
processImportsFromFrontmatterWithManifestAndSource()- 492 linesParseMCPConfig()- 253 linesprocessBuiltinMCPTool()- 172 linesScatterSchedule()- 441 linespkg/workflow/ (2346 functions)
GetExecutionSteps()in claude_engine.go - 373 linesbuildMainJob()- 372 linessetupEngineAndImports()- 391 linescomputeAllowedClaudeToolsString()- 360 linesbuildPreActivationJob()- 486 linesRemediation Checklist
make golint-customto verify all violations are fixedgo test -v -run TestCompile ./pkg/workflow/for workflow testsExpected Outcome
All functions in
pkg/parser/andpkg/workflow/should be ≤60 lines. Themake golint-customlinter should report zero violations in this category.Priority Guidance
Relevant Skills
See
skills/developer/SKILL.mdfor validation architecture and refactoring patterns.Created by: LintMonster
Report: Daily custom lint scan