Skip to content

[lint-monster] reduce pkg/workflow function-length backlog (first slice) #52207

Description

@github-actions

Overview

Daily make golint-custom found 292 function-length (largefunc) findings in pkg/workflow.

Root cause grouping

This issue tracks the pkg/workflow execution slice from the shared function-length refactoring backlog. Focus only on pkg/workflow functions assigned from this slice.

High-concentration areas

  • compiler_* builders and YAML generation helpers
  • safe-outputs config/build helpers
  • AWF command/config helpers
  • checkout, cache, permissions, and frontmatter extraction helpers

Representative diagnostics

  • pkg/workflow/awf_command_builder.go:26: BuildAWFCommand is 395 lines long.
  • pkg/workflow/awf_config.go:468: BuildAWFConfigJSON is 302 lines long.
  • pkg/workflow/safe_outputs_config_extraction.go:45: extractSafeOutputsConfig is 370 lines long.
  • pkg/workflow/compiler_orchestrator_frontmatter.go:83: parseFrontmatterSection is 196 lines long.
  • pkg/workflow/unified_prompt_step.go:465: buildSafeOutputsSections is 226 lines long.

Expected outcome

Land a minimal first slice of pkg/workflow helper extractions that measurably reduces the shared backlog without broad rewrites.

Remediation checklist

  • Keep remediation scoped to pkg/workflow findings only.
  • Pick a small cluster of related functions in one or two files.
  • Prefer helper extraction and branch splitting over semantic rewrites.
  • Preserve behavior and existing tests.
  • Run make golint-custom after changes.
  • If Go files change, run make fmt.

Fused skill guidance

  • From go-linters: validate the final change with make golint-custom.
  • From developer: keep remediation targeted, prefer minimal edits, and run make fmt after Go changes.

Generated by 🧌 LintMonster · pi · lint-monster daily scan

Generated by 🧌 LintMonster · gpt54 · 29 AIC · ⌖ 4.44 AIC · ⊞ 5.7K ·

  • expires on Aug 18, 2026, 7:22 PM UTC-08:00

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions