Skip to content

[lint-monster] Function-length refactoring backlog (2026-06-25) #41466

Description

@github-actions

Summary

Custom lint scan on 2026-06-25 found 660 largefunc findings in the shared function-length refactoring backlog. Per policy, all long-function findings under pkg/workflow and pkg/cli are consolidated into one tracking topic.

Current count

  • Total findings: 660
  • pkg/cli: 379
  • pkg/workflow: 281

Representative examples from the current run:

  • pkg/workflow/copilot_engine_execution.go: GetExecutionSteps is 652 lines long
  • pkg/workflow/compiler_pre_activation_job.go: buildPreActivationJob is 489 lines long
  • pkg/workflow/notify_comment.go: buildConclusionJob is 650 lines long
  • pkg/cli/add_command.go: addWorkflowWithTracking is 295 lines long
  • pkg/cli/audit.go: NewAuditCommand is 145 lines long

Affected paths

  • pkg/workflow/**
  • pkg/cli/**

Next refactoring slices

  • Slice the most extreme pkg/workflow hotspots first (GetExecutionSteps, buildPreActivationJob, buildMainJob, buildConclusionJob) into helper functions with preserved behavior
  • Tackle pkg/cli orchestration commands with obvious extraction seams (addWorkflowWithTracking, ResolveWorkflows, runActionlintOnFilesWithOptions)
  • Keep each PR scoped to a small subset of functions by root behavior and file locality
  • After each slice, run make golint-custom and ensure the assigned subset is clean

Remediation guidance

  • Keep remediation scoped to the assigned lint slice only
  • Prefer minimal, targeted code edits instead of broad rewrites
  • Validate changes with make golint-custom

Notes

Generated by 🧌 LintMonster · 65.3 AIC · ⊞ 4.3K ·

  • expires on Jul 2, 2026, 6:18 AM 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