Skip to content

[lint-monster] lint-monster: Function Length Refactoring (660 findings) #40212

Description

@github-actions

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:

  1. Prioritize functions with highest line count (300+, 200+, etc.)
  2. Extract cohesive logical blocks into separate helpers
  3. Run make golint-custom after each refactoring slice
  4. Update this tracking issue with completed slices

Remediation Checklist:

  • Refactor largest functions (300+ lines) first
  • Verify make golint-custom passes after each slice
  • Document extracted helpers with clear responsibility
  • Ensure test coverage maintained

Generated by 🧌 LintMonster · 14.1 AIC · ⌖ 8.84 AIC · ⊞ 4.7K ·

  • expires on Jun 25, 2026, 7:51 PM UTC-08:00

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions