Skip to content

Refactor long workflow and CLI functions into focused helpers - #71890

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/lint-monster-function-length-refactoring
Closed

pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/lint-monster-function-length-refactoring

Conversation

Copilot AI commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Addresses 330 long-function findings across 217 files in pkg/workflow and pkg/cli, targeting the existing 60-line body limit without suppressions.

  • Workflow compiler: Extract parsing, validation, job assembly, and YAML rendering into named helpers.
  • CLI: Separate command orchestration, dependency handling, log parsing, and report rendering.
  • Behavior preservation: Retain output, ordering, error handling, resource lifetimes, and nil/empty semantics. Add focused regression coverage around extracted boundaries.
  • Outstanding verification: Focused length checks passed. Final repository-wide lint confirmation remains outstanding; the precommit command exited with code 1, and its detailed output has not been reviewed.

Copilot AI linked an issue Oct 25, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Refactor long functions as per lint findings Refactor long workflow and CLI functions into focused helpers Oct 25, 2026
Copilot AI requested a review from pelikhan October 25, 2026 13:41
@pelikhan pelikhan closed this Oct 25, 2026
@github-actions
github-actions Bot deleted the copilot/lint-monster-function-length-refactoring branch November 2, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[lint-monster] function-length refactoring

2 participants