Skip to content

[lint-monster] function-length refactoring #71534

Not planned

Description

@github-actions

Daily lint findings — 2026-10-25

Pre-check run: §40155375440

The scan reported 330 long-function findings across 217 files in pkg/workflow and pkg/cli.

Affected paths with the most findings: pkg/cli/audit_diff_render.go (5), pkg/cli/frontmatter_editor.go (4), pkg/cli/includes.go (4), pkg/cli/logs_metrics.go (4), pkg/cli/mcp_inspect_mcp.go (4), pkg/cli/remove_command.go (4), pkg/workflow/cache_memory.go (4), pkg/workflow/central_slash_command_workflow.go (4), pkg/workflow/permissions_validation.go (4), pkg/cli/add_interactive_schedule.go (3), pkg/cli/compile_stats.go (3), and pkg/cli/deps_report.go (3), plus 205 other files.

Representative diagnostics: pkg/workflow/add_comment.go:33 reports parseCommentsConfig at 63 lines; pkg/workflow/cache_memory.go:15 reports generateCacheMemorySteps at 88 lines; pkg/workflow/cache_memory.go:419 reports buildUpdateCacheMemoryJob at 180 lines.

Remediation checklist

  • Run make golint-custom and address only long-function findings located in pkg/workflow or pkg/cli.
  • Refactor incrementally into small, named helpers that keep control flow and behavior clear; avoid unrelated code changes or broad redesigns.
  • Preserve behavior and add focused tests where extraction changes logic or existing coverage does not protect it. Do not silence the linter.
  • Run make golint-custom again and confirm this category is clean; report any finding that cannot be safely fixed with a short reason.

Generated by 🧌 LintMonster · codex · gpt60 · ~3 AIC · ⌖ ~1 AIC · ⊞ 16.6K · ◷

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

Metadata

Metadata

Labels

automationcookielint

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions