Summary
Daily make golint-custom found 674 function-length findings across pkg/workflow and pkg/cli. Per LintMonster policy, all long-function / largefunc findings in these directories are tracked as one shared topic: function-length refactoring.
Current authoritative count
- Total findings: 674
pkg/workflow: 287
pkg/cli: 387
Representative diagnostics
pkg/workflow/awf_config.go: BuildAWFConfigJSON is 300 lines long (limit: 60)
pkg/workflow/safe_outputs_config_extraction.go: extractSafeOutputsConfig is 376 lines long (limit: 60)
pkg/cli/add_workflow_pr.go: addWorkflowsWithPR is 131 lines long (limit: 60)
Affected paths
pkg/workflow/**
pkg/cli/**
Expected outcome
Reduce the current backlog by extracting helpers and narrowing responsibilities in oversized functions, without changing behavior. Keep each remediation slice small and reviewable.
Next refactoring slices
Remediation checklist
Copilot execution guidance
Use skill-fused constraints for this lint group:
- Work only on the long-function findings in
pkg/workflow and pkg/cli.
- Prefer helper extraction, smaller focused builders, and narrow responsibility splits.
- Keep edits minimal and avoid mixing unrelated cleanups.
- Run
make golint-custom before finishing and ensure the touched findings are reduced or removed.
Duplicate handling
This issue supersedes prior function-length backlog snapshots. Closed duplicates linked from this scan: none.> Generated by 🧌 LintMonster · gpt54 · 13.3 AIC · ⌖ 5.42 AIC · ⊞ 5.9K · ◷
Summary
Daily
make golint-customfound 674 function-length findings acrosspkg/workflowandpkg/cli. Per LintMonster policy, all long-function /largefuncfindings in these directories are tracked as one shared topic: function-length refactoring.Current authoritative count
pkg/workflow: 287pkg/cli: 387Representative diagnostics
pkg/workflow/awf_config.go:BuildAWFConfigJSONis 300 lines long (limit: 60)pkg/workflow/safe_outputs_config_extraction.go:extractSafeOutputsConfigis 376 lines long (limit: 60)pkg/cli/add_workflow_pr.go:addWorkflowsWithPRis 131 lines long (limit: 60)Affected paths
pkg/workflow/**pkg/cli/**Expected outcome
Reduce the current backlog by extracting helpers and narrowing responsibilities in oversized functions, without changing behavior. Keep each remediation slice small and reviewable.
Next refactoring slices
pkg/workflowhotspots such asBuildAWFConfigJSON,extractSafeOutputsConfig, and other 150+ line builderspkg/cliworkflow, codemod, and audit helpers in small batchesmake golint-customRemediation checklist
make golint-customCopilot execution guidance
Use skill-fused constraints for this lint group:
pkg/workflowandpkg/cli.make golint-custombefore finishing and ensure the touched findings are reduced or removed.Duplicate handling
This issue supersedes prior function-length backlog snapshots. Closed duplicates linked from this scan: none.> Generated by 🧌 LintMonster · gpt54 · 13.3 AIC · ⌖ 5.42 AIC · ⊞ 5.9K · ◷