Fail the gate on a function over 50 lines or complexity 20 #189
Reference in New Issue
Block a user
Delete Branch "item-21"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
src/function-limits.test.ts: every function stays within ESLint's defaultmax-lines-per-function(50) andcomplexity(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.