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
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 · ◷
Summary
Custom lint scan on 2026-06-25 found 660
largefuncfindings in the shared function-length refactoring backlog. Per policy, all long-function findings underpkg/workflowandpkg/cliare consolidated into one tracking topic.Current count
pkg/cli: 379pkg/workflow: 281Representative examples from the current run:
pkg/workflow/copilot_engine_execution.go:GetExecutionStepsis 652 lines longpkg/workflow/compiler_pre_activation_job.go:buildPreActivationJobis 489 lines longpkg/workflow/notify_comment.go:buildConclusionJobis 650 lines longpkg/cli/add_command.go:addWorkflowWithTrackingis 295 lines longpkg/cli/audit.go:NewAuditCommandis 145 lines longAffected paths
pkg/workflow/**pkg/cli/**Next refactoring slices
pkg/workflowhotspots first (GetExecutionSteps,buildPreActivationJob,buildMainJob,buildConclusionJob) into helper functions with preserved behaviorpkg/cliorchestration commands with obvious extraction seams (addWorkflowWithTracking,ResolveWorkflows,runActionlintOnFilesWithOptions)make golint-customand ensure the assigned subset is cleanRemediation guidance
make golint-customNotes
function-length refactoringbacklog from the current lint run.largefunc/excessivefuncparamssuppression), not this backlog of current repo findings.