Skip to content

[lint-monster] Function-length refactoring backlog (2026-07-07) #43921

Description

@github-actions

Summary

Custom lint scan found 659 shared function-length findings under pkg/workflow and pkg/cli from make golint-custom.

This issue is intended to consolidate the current backlog snapshot for the shared function-length refactoring topic. Existing authoritative/open tracking issue: #42880.

Current count

  • Total shared function-length findings: 659
  • pkg/workflow: 284
  • pkg/cli: 375

Representative diagnostics

  • pkg/workflow/action_resolver.go:93: ResolveSHA is 67 lines long
  • pkg/workflow/compiler_main_job.go:26: buildMainJob is 420 lines long
  • pkg/workflow/maintenance_workflow_yaml.go:35: buildMaintenanceWorkflowYAML is 961 lines long
  • pkg/cli/actionlint.go:223: runActionlintOnFilesWithOptions is 184 lines long
  • pkg/cli/audit_report_render.go:24: renderConsole is 310 lines long

Remediation checklist

  • Pick a small slice of functions from this backlog and refactor only those functions.
  • Prefer minimal, targeted code edits over broad rewrites.
  • Keep helper extraction local to the affected package unless a shared abstraction is clearly justified.
  • Preserve tests and behavior; add or update tests only when needed for the chosen slice.
  • Validate the slice by running make golint-custom.

Note

If created, this should be treated as a duplicate snapshot and folded into #42880 to preserve a single authoritative open issue.

Generated by 🧌 LintMonster · 39.2 AIC · ⌖ 6.94 AIC · ⊞ 4.4K ·

  • expires on Jul 13, 2026, 7:51 PM UTC-08:00

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions