Skip to content

ci: cap code files at 1,000 lines#1060

Merged
dcramer merged 1 commit into
mainfrom
codex/enforce-file-length
Jul 26, 2026
Merged

ci: cap code files at 1,000 lines#1060
dcramer merged 1 commit into
mainfrom
codex/enforce-file-length

Conversation

@dcramer

@dcramer dcramer commented Jul 26, 2026

Copy link
Copy Markdown
Member

Code files now fail the normal lint path when they exceed 1,000 lines unless they have an explicit, reasoned exception. The checker also rejects stale exceptions, runs its own unit tests, and records the current oversized-file debt so new monoliths cannot slip in unnoticed.

The existing 1,901-line GitHub plugin entry point is split into plugin composition and egress policy, credential support, and Git setup while preserving the package's public exports and behavior. The repository guidance now also asks shared exports to remain easy to find and documents important intentionally absent behavior.

The GitHub package builds, typechecks, and lints successfully, and its 102 targeted plugin tests pass. Review should focus on the exception list and the behavior-preserving GitHub module split.

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Jul 26, 2026 11:43pm

Request Review

@dcramer
dcramer marked this pull request as ready for review July 26, 2026 23:46
@github-actions github-actions Bot added the risk: high PR risk score: high label Jul 26, 2026
@dcramer
dcramer merged commit a355283 into main Jul 26, 2026
33 checks passed
@dcramer
dcramer deleted the codex/enforce-file-length branch July 26, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant