Skip to content

[lint-monster] function-length refactoring #68573

Open

Description

@github-actions

Daily custom lint findings

The 2026-10-16 scan reported 407 function-length findings across 266 files in pkg/workflow and pkg/cli. Scan run: §38841529624.

Representative diagnostics

  • pkg/workflow/add_comment.go:33:20: parseCommentsConfig is 63 lines long (limit: 60).
  • pkg/workflow/artifacts.go:29:6: buildArtifactDownloadSteps is 73 lines long (limit: 60).
  • pkg/workflow/cache_memory.go:419:20: buildUpdateCacheMemoryJob is 180 lines long (limit: 60).

Affected paths

Highest-count examples from the scan:

  • pkg/cli/audit_diff_render.go (5)
  • pkg/workflow/cache_memory.go (4)
  • pkg/workflow/central_slash_command_workflow.go (4)
  • pkg/workflow/permissions_validation.go (4)
  • pkg/cli/audit_diff.go (4)

Remediation checklist

  • Refactor only the reported long functions in pkg/workflow and pkg/cli.
  • Extract small helpers where that clarifies responsibilities, preserve behavior, and avoid broad cleanup outside the findings.
  • Run make golint-custom to validate the fixes.

Generated by 🧌 LintMonster · codex · gpt60 · 2.94 AIC · ⌖ 0.316 AIC · ⊞ 16K · ◷

Generated by 🧌 LintMonster · codex · gpt60 · 2.6 AIC · ⌖ 0.326 AIC · ⊞ 16.4K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions