Skip to content

[lint-monster] function-length refactoring: 638 findings #37476

@github-actions

Description

@github-actions

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:

  1. Single responsibility principle
  2. Clear helper function boundaries
  3. 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

  1. Prioritize longest functions first
  2. Extract well-defined helper functions
  3. Run make golint-custom after each extraction
  4. Update this issue with progress

Generated by 🧌 LintMonster · 95 AIC · ⌖ 7.17 AIC · ⊞ 19.9K ·

  • expires on Jun 14, 2026, 3:51 AM UTC

Metadata

Metadata

Labels

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