Shared backlog: function-length refactoring
Current make golint-custom run reports 677 long-function findings across the shared pkg/workflow + pkg/cli backlog. Per the LintMonster grouping rule, treat these findings as one authoritative tracking topic instead of separate workflow/cli slices.
Current count
- 677 total findings in the shared backlog
- Affected path prefixes:
pkg/workflow/, pkg/cli/
Representative diagnostics
pkg/workflow/maintenance_workflow_yaml.go: buildMaintenanceWorkflowYAML is 961 lines
pkg/workflow/frontmatter_on_section_cleanup.go: commentOutProcessedFieldsInOnSection is 697 lines
pkg/workflow/side_repo_maintenance.go: generateSideRepoMaintenanceWorkflow is 447 lines
pkg/cli/run_workflow_execution.go: RunWorkflowOnGitHub is 438 lines
pkg/workflow/mcp_config_custom.go: renderSharedMCPConfig is 428 lines
pkg/workflow/repo_memory.go: extractRepoMemoryConfig is 415 lines
pkg/workflow/engine.go: ExtractEngineConfig is 410 lines
pkg/cli/logs_command.go: NewLogsCommand is 376 lines
Expected outcome
Reduce the shared function-length backlog by extracting small helpers and focused files while preserving behavior.
Next refactoring slices
Remediation checklist
Related issues
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 · 39.6 AIC · ⌖ 9.74 AIC · ⊞ 4.4K · ◷
Shared backlog: function-length refactoring
Current
make golint-customrun reports 677 long-function findings across the sharedpkg/workflow+pkg/clibacklog. Per the LintMonster grouping rule, treat these findings as one authoritative tracking topic instead of separate workflow/cli slices.Current count
pkg/workflow/,pkg/cli/Representative diagnostics
pkg/workflow/maintenance_workflow_yaml.go:buildMaintenanceWorkflowYAMLis 961 linespkg/workflow/frontmatter_on_section_cleanup.go:commentOutProcessedFieldsInOnSectionis 697 linespkg/workflow/side_repo_maintenance.go:generateSideRepoMaintenanceWorkflowis 447 linespkg/cli/run_workflow_execution.go:RunWorkflowOnGitHubis 438 linespkg/workflow/mcp_config_custom.go:renderSharedMCPConfigis 428 linespkg/workflow/repo_memory.go:extractRepoMemoryConfigis 415 linespkg/workflow/engine.go:ExtractEngineConfigis 410 linespkg/cli/logs_command.go:NewLogsCommandis 376 linesExpected outcome
Reduce the shared function-length backlog by extracting small helpers and focused files while preserving behavior.
Next refactoring slices
pkg/workflow/maintenance_workflow_yaml.go,pkg/workflow/compiler_yaml*.go)pkg/workflow/frontmatter_on_section_cleanup.go,pkg/workflow/*config*.go)pkg/workflow/engine.go,pkg/workflow/mcp_config_custom.go,pkg/workflow/*engine*.go)pkg/cli/run_workflow_execution.go,pkg/cli/logs_command.go, nearby orchestration helpers)Remediation checklist
make golint-customRelated issues
pkg/clibootstrap/profile/runner subset)Fused skill guidance
make golint-custom