Skip to content

[lint-monster] [Code Quality] Reduce largefunc findings in pkg/workflow maintenance/compiler YAML slice #46330

Description

@github-actions

Lint slice: pkg/workflow maintenance and compiler YAML function-length refactoring

make golint-custom reports major long-function hotspots in workflow YAML generation, including buildMaintenanceWorkflowYAML at 961 lines and several compiler_yaml*.go generators over the 60-line limit.

Scope

Focus only on the maintenance/compiler YAML generator slice in pkg/workflow.

Representative diagnostics

  • pkg/workflow/maintenance_workflow_yaml.go: buildMaintenanceWorkflowYAML is 961 lines
  • pkg/workflow/compiler_yaml_prompt.go: generatePrompt is 284 lines
  • pkg/workflow/compiler_yaml_header.go: generateWorkflowHeader is 172 lines
  • pkg/workflow/compiler_yaml_step_lifecycle.go: generateCreateAwInfo is 180 lines

Expected outcome

Refactor this YAML-generation slice into smaller helpers/files while preserving emitted workflow content and behavior.

Remediation checklist

  • Keep changes scoped to this lint slice only
  • Prefer focused helper extraction and small file splits
  • Preserve rendered YAML behavior and existing interfaces unless a tiny internal change is safer
  • Avoid unrelated cleanup in other workflow subsystems
  • Validate with make golint-custom

Fused skill guidance

  • Validate fixes by running make golint-custom
  • Keep remediation scoped to findings in the assigned lint group
  • Prefer minimal, targeted code edits

Generated by 🧌 LintMonster · 43.7 AIC · ⌖ 8.58 AIC · ⊞ 4.4K ·

  • expires on Jul 24, 2026, 7:45 PM UTC-08:00

Metadata

Metadata

Type

No type

Fields

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