Skip to content

[lint-monster] Authoritative function-length refactoring tracker #49030

Description

@github-actions

Summary

Custom lint scan reports 677 largefunc findings across the shared pkg/workflow and pkg/cli backlog. Per repo policy, this backlog must be tracked as one shared topic with exactly one authoritative open issue.

Current run breakdown:

  • pkg/cli: 383 findings
  • pkg/workflow: 291 findings
  • cmd/gh-aw: 3 findings

Representative diagnostics:

  • pkg/workflow/awf_helpers.go:229BuildAWFCommand is 377 lines long
  • pkg/workflow/codex_engine.go:207GetExecutionSteps is 315 lines long
  • pkg/workflow/compiler_safe_outputs_job.go:269buildSafeOutputsHandlerOutputsAndActionSteps is 220 lines long
  • pkg/cli/add_interactive_git.go:26createWorkflowPRAndConfigureSecret is 171 lines long
  • pkg/cli/add_interactive_workflow.go:17checkStatusAndOfferRun is 146 lines long

Authoritative tracking

This issue is the single authoritative tracker for the current function-length refactoring backlog.

Duplicate issues linked/closed in this run:

Expected outcome

Reduce the largefunc backlog incrementally via small, reviewable slices without broad rewrites.

Next refactoring slices

  • Slice 1: pkg/cli interactive workflow helpers (add_interactive_*, add_workflow_*)
  • Slice 2: pkg/workflow engine step generators (*engine.go, *_logs.go)
  • Slice 3: pkg/workflow compiler/safe-output builders (compiler_*, safe_outputs_*)
  • Slice 4: pkg/workflow parsing/validation hotspots (frontmatter_*, permissions_*, tools_*)
  • Slice 5: keep each PR narrow and validate with make golint-custom

Generated by 🧌 LintMonster · gpt54 · 35.3 AIC · ⌖ 7.93 AIC · ⊞ 5.3K ·

  • expires on Aug 5, 2026, 7:41 PM UTC-08:00

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions