Summary
Daily make golint-custom surfaced a consolidated function-length refactoring backlog from the custom largefunc rule (max-lines=60). This run found 678 findings total across pkg/cli, pkg/workflow, and pkg/console, and per workflow policy these are tracked as a single shared topic.
Current finding count
- Total findings: 678
- pkg/cli: 385
- pkg/workflow: 292
- pkg/console: 1
Representative diagnostics
pkg/console/progress.go:81 — Update is 61 lines long
pkg/workflow/awf_config.go:476 — BuildAWFConfigJSON is 320 lines long
pkg/workflow/safe_outputs_config_extraction.go:45 — extractSafeOutputsConfig is 376 lines long
pkg/workflow/threat_detection_inline_engine.go:15 — buildDetectionEngineExecutionStep is 297 lines long
pkg/cli/add_package_ownership.go:246 — syncManifestManagedResources is 171 lines long
pkg/cli/mcp_tools_privileged.go — 6 separate function-length findings in one file
Affected areas
pkg/cli command, audit, codemod, and MCP-related helpers
pkg/workflow compiler, safe-outputs, parsing, validation, and engine helpers
pkg/console/progress.go
Expected outcome
Refactor overlong functions into smaller helpers while preserving behavior, keeping each work slice tightly scoped and validating with make golint-custom.
Remediation checklist
Suggested next slices
Copilot instructions
- Fix only the findings in the assigned slice.
- Use skill-fused guidance: prefer small, targeted helper extraction and existing organization patterns.
- Avoid opportunistic renames or behavior changes.
- Final validation must be
make golint-custom.
Duplicate handling
- No existing open or recent closed
lint-monster function-length tracking issue was found in the latest repository issue sample queried during this run.
- No duplicate issues were closed in this run.
Generated by 🧌 LintMonster · gpt54 · 20.8 AIC · ⌖ 6.33 AIC · ⊞ 6K · ◷
Summary
Daily
make golint-customsurfaced a consolidated function-length refactoring backlog from the customlargefuncrule (max-lines=60). This run found 678 findings total acrosspkg/cli,pkg/workflow, andpkg/console, and per workflow policy these are tracked as a single shared topic.Current finding count
Representative diagnostics
pkg/console/progress.go:81—Updateis 61 lines longpkg/workflow/awf_config.go:476—BuildAWFConfigJSONis 320 lines longpkg/workflow/safe_outputs_config_extraction.go:45—extractSafeOutputsConfigis 376 lines longpkg/workflow/threat_detection_inline_engine.go:15—buildDetectionEngineExecutionStepis 297 lines longpkg/cli/add_package_ownership.go:246—syncManifestManagedResourcesis 171 lines longpkg/cli/mcp_tools_privileged.go— 6 separate function-length findings in one fileAffected areas
pkg/clicommand, audit, codemod, and MCP-related helperspkg/workflowcompiler, safe-outputs, parsing, validation, and engine helperspkg/console/progress.goExpected outcome
Refactor overlong functions into smaller helpers while preserving behavior, keeping each work slice tightly scoped and validating with
make golint-custom.Remediation checklist
make golint-custombefore finishing.Suggested next slices
pkg/clihighest-density files (for examplemcp_tools_privileged.go,forecast_compute.go,audit_diff_render.go, related local helpers)pkg/workflowsafe-outputs / compiler-heavy files with the largest single functionspkg/workflowparsing / validation / rendering backlog plus the lonepkg/consoleoverflowCopilot instructions
make golint-custom.Duplicate handling
lint-monsterfunction-length tracking issue was found in the latest repository issue sample queried during this run.