Summary
make golint-custom reported 682 shared function-length findings in pkg/workflow and pkg/cli. Per repo policy, these are tracked as one consolidated backlog: function-length refactoring.
Current lint snapshot
- Total shared findings: 682
pkg/workflow: 294 findings across 198 files
pkg/cli: 388 findings across 229 files
- Validation command:
make golint-custom
Representative diagnostics
pkg/workflow/awf_command_builder.go:26 — BuildAWFCommand is 395 lines long (limit: 60)
pkg/workflow/awf_config.go:468 — BuildAWFConfigJSON is 302 lines long (limit: 60)
pkg/workflow/safe_outputs_config_extraction.go:45 — extractSafeOutputsConfig is 370 lines long (limit: 60)
pkg/cli/mcp_tools_privileged.go:148 — registerLogsTool is 238 lines long (limit: 60)
pkg/cli/update_actions.go:160 — updateActions is 238 lines long (limit: 60)
pkg/cli/logs_metrics.go:50 — extractLogMetrics is 209 lines long (limit: 60)
Hotspots to refactor next
pkg/workflow
dependabot.go (6 findings)
compiler_custom_jobs.go (5)
cache.go (4)
central_slash_command_workflow.go (4)
frontmatter_extraction_security.go (4)
pkg/cli
mcp_tools_privileged.go (6 findings)
update_actions.go (6)
audit_diff_render.go (5)
forecast_compute.go (5)
add_workflow_resolution.go (4)
Expected outcome
Reduce this backlog by extracting helpers, isolating formatting/rendering branches, and splitting parsing/assembly phases without changing behavior.
Remediation checklist
Copilot instructions
- Pick one narrow slice from the hotspots above.
- Refactor only functions in that slice until they are at or under the long-function limit.
- Avoid unrelated cleanup.
- Validate with
make golint-custom before finishing.
Generated by 🧌 LintMonster · gpt54 · 29.9 AIC · ⌖ 4.17 AIC · ⊞ 5.7K · ◷
Summary
make golint-custom reports 682 shared function-length findings in pkg/workflow and pkg/cli. Per repo policy, these remain tracked as one consolidated backlog: function-length refactoring.
Current lint snapshot
- Total shared findings: 682
pkg/workflow: 294 findings across shared long-function backlog
pkg/cli: 388 findings across shared long-function backlog
- Validation command:
make golint-custom
Representative diagnostics
pkg/workflow/awf_command_builder.go:26 — BuildAWFCommand is 396 lines long (limit: 60)
pkg/workflow/awf_config.go:468 — BuildAWFConfigJSON is 300 lines long (limit: 60)
pkg/workflow/safe_outputs_config_extraction.go:45 — extractSafeOutputsConfig is 370 lines long (limit: 60)
pkg/cli/mcp_tools_privileged.go:148 — registerLogsTool is 238 lines long (limit: 60)
pkg/cli/update_actions.go:160 — updateActions is 238 lines long (limit: 60)
pkg/cli/logs_metrics.go:50 — extractLogMetrics is 209 lines long (limit: 60)
Hotspots to refactor next
pkg/workflow
dependabot.go (6 findings)
compiler_custom_jobs.go (5)
cache.go (4)
central_slash_command_workflow.go (4)
frontmatter_extraction_security.go (4)
pkg/cli
mcp_tools_privileged.go (6 findings)
update_actions.go (6)
audit_diff_render.go (5)
forecast_compute.go (5)
add_workflow_resolution.go (4)
Expected outcome
Reduce this backlog by extracting helpers, isolating formatting/rendering branches, and splitting parsing/assembly phases without changing behavior.
Remediation checklist
Copilot instructions
- Pick one narrow slice from the hotspots above.
- Refactor only functions in that slice until they are at or under the long-function limit.
- Avoid unrelated cleanup.
- Validate with
make golint-custom before finishing.
Duplicate tracking issues
- No duplicate open
lint-monster function-length tracking issues were found in the current repository issue list.> Generated by 🧌 LintMonster · gpt54 · 25.3 AIC · ⌖ 4.17 AIC · ⊞ 5.7K · ◷
Summary
make golint-customreported 682 shared function-length findings inpkg/workflowandpkg/cli. Per repo policy, these are tracked as one consolidated backlog: function-length refactoring.Current lint snapshot
pkg/workflow: 294 findings across 198 filespkg/cli: 388 findings across 229 filesmake golint-customRepresentative diagnostics
pkg/workflow/awf_command_builder.go:26—BuildAWFCommand is 395 lines long (limit: 60)pkg/workflow/awf_config.go:468—BuildAWFConfigJSON is 302 lines long (limit: 60)pkg/workflow/safe_outputs_config_extraction.go:45—extractSafeOutputsConfig is 370 lines long (limit: 60)pkg/cli/mcp_tools_privileged.go:148—registerLogsTool is 238 lines long (limit: 60)pkg/cli/update_actions.go:160—updateActions is 238 lines long (limit: 60)pkg/cli/logs_metrics.go:50—extractLogMetrics is 209 lines long (limit: 60)Hotspots to refactor next
pkg/workflowdependabot.go(6 findings)compiler_custom_jobs.go(5)cache.go(4)central_slash_command_workflow.go(4)frontmatter_extraction_security.go(4)pkg/climcp_tools_privileged.go(6 findings)update_actions.go(6)audit_diff_render.go(5)forecast_compute.go(5)add_workflow_resolution.go(4)Expected outcome
Reduce this backlog by extracting helpers, isolating formatting/rendering branches, and splitting parsing/assembly phases without changing behavior.
Remediation checklist
make golint-customand confirm the assigned slice no longer reports.Copilot instructions
make golint-custombefore finishing.Summary
make golint-customreports 682 shared function-length findings inpkg/workflowandpkg/cli. Per repo policy, these remain tracked as one consolidated backlog: function-length refactoring.Current lint snapshot
pkg/workflow: 294 findings across shared long-function backlogpkg/cli: 388 findings across shared long-function backlogmake golint-customRepresentative diagnostics
pkg/workflow/awf_command_builder.go:26—BuildAWFCommand is 396 lines long (limit: 60)pkg/workflow/awf_config.go:468—BuildAWFConfigJSON is 300 lines long (limit: 60)pkg/workflow/safe_outputs_config_extraction.go:45—extractSafeOutputsConfig is 370 lines long (limit: 60)pkg/cli/mcp_tools_privileged.go:148—registerLogsTool is 238 lines long (limit: 60)pkg/cli/update_actions.go:160—updateActions is 238 lines long (limit: 60)pkg/cli/logs_metrics.go:50—extractLogMetrics is 209 lines long (limit: 60)Hotspots to refactor next
pkg/workflowdependabot.go(6 findings)compiler_custom_jobs.go(5)cache.go(4)central_slash_command_workflow.go(4)frontmatter_extraction_security.go(4)pkg/climcp_tools_privileged.go(6 findings)update_actions.go(6)audit_diff_render.go(5)forecast_compute.go(5)add_workflow_resolution.go(4)Expected outcome
Reduce this backlog by extracting helpers, isolating formatting/rendering branches, and splitting parsing/assembly phases without changing behavior.
Remediation checklist
make golint-customand confirm the assigned slice no longer reports.Copilot instructions
make golint-custombefore finishing.Duplicate tracking issues
lint-monsterfunction-length tracking issues were found in the current repository issue list.> Generated by 🧌 LintMonster · gpt54 · 25.3 AIC · ⌖ 4.17 AIC · ⊞ 5.7K · ◷