Fail the gate on a function over 50 lines or complexity 20 #189

Merged
lilleman merged 7 commits from item-21 into main 2026-10-31 09:01:30 +01:00
Owner

Adds src/function-limits.test.ts: every function stays within ESLint's default max-lines-per-function (50) and complexity (20), measured on Node's type-stripped output with acorn (new devDependency, zero deps; TypeScript 7 ships no compiler API for typescript-eslint). The 13 functions over a limit today are grandfathered at their current size: they may shrink, never grow. Item 32 re-scored to R 6, so it ships alone.

Adds `src/function-limits.test.ts`: every function stays within ESLint's default `max-lines-per-function` (50) and `complexity` (20), measured on Node's type-stripped output with acorn (new devDependency, zero deps; TypeScript 7 ships no compiler API for typescript-eslint). The 13 functions over a limit today are grandfathered at their current size: they may shrink, never grow. Item 32 re-scored to R 6, so it ships alone.
lilleman added 3 commits 2026-10-31 08:51:55 +01:00
lilleman added 4 commits 2026-10-31 08:57:46 +01:00
lilleman marked the pull request as ready for review 2026-10-31 09:01:16 +01:00
lilleman merged commit 73e6d5fb08 into main 2026-10-31 09:01:30 +01:00
lilleman deleted branch item-21 2026-10-31 09:01:31 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: larvit/plainpages#189