Overview
Daily make golint-custom found 681 function-length findings grouped into the shared tracking topic function-length refactoring.
Key metrics
- Current authoritative count: 681 findings
- Primary areas:
pkg/cli (387) and pkg/workflow (293)
- Representative hotspots:
pkg/workflow/awf_command_builder.go — BuildAWFCommand (377 lines), BuildAWFArgs (168 lines)
pkg/workflow/awf_config.go — BuildAWFConfigJSON (296 lines)
pkg/workflow/safe_outputs_config_extraction.go — extractSafeOutputsConfig (370 lines)
pkg/cli/add_interactive_workflow.go — checkStatusAndOfferRun (146 lines)
Representative diagnostics
pkg/workflow/awf_command_builder.go:24: BuildAWFCommand is 377 lines long (limit: 60)
pkg/workflow/compiler_safe_outputs_job.go:760: buildJobLevelSafeOutputEnvVars is 137 lines long (limit: 60)
pkg/cli/add_wizard_command.go:15: NewAddWizardCommand is 123 lines long (limit: 60)
Expected outcome
Reduce the backlog by slicing long functions into smaller helpers while preserving behavior and test coverage.
Remediation checklist
Suggested next slices
Duplicate / prior tracking
Generated by 🧌 LintMonster · gpt54 · 25.8 AIC · ⌖ 6.08 AIC · ⊞ 5.8K · ◷
Overview
Daily
make golint-customfound 681 function-length findings grouped into the shared tracking topic function-length refactoring.Key metrics
pkg/cli(387) andpkg/workflow(293)pkg/workflow/awf_command_builder.go—BuildAWFCommand(377 lines),BuildAWFArgs(168 lines)pkg/workflow/awf_config.go—BuildAWFConfigJSON(296 lines)pkg/workflow/safe_outputs_config_extraction.go—extractSafeOutputsConfig(370 lines)pkg/cli/add_interactive_workflow.go—checkStatusAndOfferRun(146 lines)Representative diagnostics
pkg/workflow/awf_command_builder.go:24: BuildAWFCommand is 377 lines long (limit: 60)pkg/workflow/compiler_safe_outputs_job.go:760: buildJobLevelSafeOutputEnvVars is 137 lines long (limit: 60)pkg/cli/add_wizard_command.go:15: NewAddWizardCommand is 123 lines long (limit: 60)Expected outcome
Reduce the backlog by slicing long functions into smaller helpers while preserving behavior and test coverage.
Remediation checklist
make golint-customafter the changes and ensure the assigned slice is clean.make fmt.Suggested next slices
pkg/workflow/awf_command_builder.gopkg/workflow/safe_outputs_config_extraction.gopkg/workflow/compiler_yaml_step_lifecycle.gopkg/cli/add_interactive_workflow.gopkg/cli/update_actions.goDuplicate / prior tracking