Skip to content

[Code Quality] Reduce function-length violations in pkg/cli bootstrap/profile/runner (385 findings) #46369

Description

@github-actions

Description

The LintMonster daily report identifies 709 long-function findings across the codebase, concentrated in two packages: pkg/cli (385 findings) and pkg/workflow (294 findings). The pkg/cli slice specifically covers bootstrap/profile/runner hotspots.

Execution issue #46329 was created for this slice but focusing on the bootstrap, profile, and runner files that have the densest function-length violations.

Suggested Changes

  • Identify and split functions exceeding the custom-linter length threshold in pkg/cli/ bootstrap/profile/runner files.
  • Extract helper functions, reduce nested conditionals, split large switch cases.
  • Target: reduce pkg/cli findings from 385 toward < 300.

Files Affected

  • pkg/cli/ — bootstrap, profile, and runner hotspot files (identify via make golint-custom 2>&1 | grep pkg/cli)

Success Criteria

  • make golint-custom shows reduced pkg/cli finding count
  • All existing tests continue to pass
  • No behavioral changes (pure refactor)

Source

Extracted from LintMonster daily report: 709 custom-linter findings — 2026-07-18 (#46334)

Priority

High — 385 long-function violations in pkg/cli is the largest single slice. Improves readability and testability.

🔍 Task mining by Discussion Task Miner - Code Quality Improvement Agent · 64.4 AIC · ⌖ 7.63 AIC · ⊞ 7K ·

  • expires on Jul 18, 2026, 11:25 PM UTC-08:00

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions