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
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 · ◷
Lint slice: pkg/workflow maintenance and compiler YAML function-length refactoring
make golint-customreports major long-function hotspots in workflow YAML generation, includingbuildMaintenanceWorkflowYAMLat 961 lines and severalcompiler_yaml*.gogenerators 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:buildMaintenanceWorkflowYAMLis 961 linespkg/workflow/compiler_yaml_prompt.go:generatePromptis 284 linespkg/workflow/compiler_yaml_header.go:generateWorkflowHeaderis 172 linespkg/workflow/compiler_yaml_step_lifecycle.go:generateCreateAwInfois 180 linesExpected outcome
Refactor this YAML-generation slice into smaller helpers/files while preserving emitted workflow content and behavior.
Remediation checklist
make golint-customFused skill guidance
make golint-custom