Daily custom lint summary
Current make golint-custom run reports 682 function-length (largefunc/long-function) findings across pkg/workflow and pkg/cli. Per repo policy this is tracked as one shared topic: function-length refactoring.
Affected areas
pkg/workflow/** — bulk of backlog
pkg/cli/** — additional long-function findings
Representative diagnostics
pkg/workflow/maintenance_workflow_yaml.go:35:6: buildMaintenanceWorkflowYAML is 961 lines long (limit: 60)
pkg/workflow/frontmatter_on_section_cleanup.go:13:20: commentOutProcessedFieldsInOnSection is 695 lines long (limit: 60)
pkg/workflow/engine.go:197:20: ExtractEngineConfig is 410 lines long (limit: 60)
pkg/workflow/awf_helpers.go:225:6: BuildAWFCommand is 355 lines long (limit: 60)
pkg/cli/add_workflow_resolution.go:70:6: ResolveWorkflows is 250 lines long (limit: 60)
pkg/cli/audit_report.go:262:6: buildAuditData is 200 lines long (limit: 60)
Expected outcome
Reduce the backlog by extracting cohesive helpers while preserving behavior and tests. Prefer small, targeted refactors over broad rewrites.
Remediation checklist
Next suggested slices
No prior authoritative lint-monster function-length tracking issue was found in currently readable open issues/PRs.
Generated by 🧌 LintMonster · 29.4 AIC · ⌖ 7.15 AIC · ⊞ 4.4K · ◷
Daily custom lint summary
Current
make golint-customrun reports 682 function-length (largefunc/long-function) findings acrosspkg/workflowandpkg/cli. Per repo policy this is tracked as one shared topic: function-length refactoring.Affected areas
pkg/workflow/**— bulk of backlogpkg/cli/**— additional long-function findingsRepresentative diagnostics
pkg/workflow/maintenance_workflow_yaml.go:35:6: buildMaintenanceWorkflowYAML is 961 lines long (limit: 60)pkg/workflow/frontmatter_on_section_cleanup.go:13:20: commentOutProcessedFieldsInOnSection is 695 lines long (limit: 60)pkg/workflow/engine.go:197:20: ExtractEngineConfig is 410 lines long (limit: 60)pkg/workflow/awf_helpers.go:225:6: BuildAWFCommand is 355 lines long (limit: 60)pkg/cli/add_workflow_resolution.go:70:6: ResolveWorkflows is 250 lines long (limit: 60)pkg/cli/audit_report.go:262:6: buildAuditData is 200 lines long (limit: 60)Expected outcome
Reduce the backlog by extracting cohesive helpers while preserving behavior and tests. Prefer small, targeted refactors over broad rewrites.
Remediation checklist
make golint-customafter the change and confirm the targeted finding count dropsNext suggested slices
pkg/workflow/maintenance_workflow_yaml.gopkg/workflow/frontmatter_on_section_cleanup.gopkg/workflow/engine.gopkg/workflow/awf_helpers.gopkg/cli/add_workflow_resolution.goNo prior authoritative lint-monster function-length tracking issue was found in currently readable open issues/PRs.