Adds the `no-undeclared-rate-limit` ESLint rule (warn severity) that
enforces rate-limit drift at lint time:
- Warns when rateLimit.consume("X", _) is called inside a use-case but
"X" is absent from manifest.useCases[name].rateLimit
- Warns when a declared rateLimit budget has no matching consume call
in the use-case body (unusedDeclaration)
- Is a no-op outside use-case files
Extends _manifest-ast.js to extract the rateLimit[] field from both
parseManifestUseCases and parseManifestFully. Updates _manifest-ast
tests to include the new field in expected shapes. Registers the rule
at warn severity in plugin.js and base.js. Adds RuleTester fixtures
for all four cases (declared+matching, undeclared, unused, non-use-case).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
175 lines
3.2 KiB
JSON
175 lines
3.2 KiB
JSON
{
|
|
"generatedAt": "2026-05-20T08:43:15.868Z",
|
|
"commit": "a478a8e",
|
|
"repo": {
|
|
"statements": 97.41,
|
|
"branches": 92.31,
|
|
"functions": 97.18,
|
|
"lines": 97.41,
|
|
"counts": {
|
|
"lf": 5867,
|
|
"lh": 5715,
|
|
"brf": 1184,
|
|
"brh": 1093,
|
|
"fnf": 354,
|
|
"fnh": 344
|
|
}
|
|
},
|
|
"byPackage": {
|
|
"@repo/auth": {
|
|
"statements": 94,
|
|
"branches": 92.11,
|
|
"functions": 100,
|
|
"lines": 94,
|
|
"counts": {
|
|
"lf": 834,
|
|
"lh": 784,
|
|
"brf": 114,
|
|
"brh": 105,
|
|
"fnf": 45,
|
|
"fnh": 45
|
|
}
|
|
},
|
|
"@repo/blog": {
|
|
"statements": 96.35,
|
|
"branches": 88.65,
|
|
"functions": 100,
|
|
"lines": 96.35,
|
|
"counts": {
|
|
"lf": 739,
|
|
"lh": 712,
|
|
"brf": 141,
|
|
"brh": 125,
|
|
"fnf": 29,
|
|
"fnh": 29
|
|
}
|
|
},
|
|
"@repo/core-analytics": {
|
|
"statements": 100,
|
|
"branches": 100,
|
|
"functions": 100,
|
|
"lines": 100,
|
|
"counts": {
|
|
"lf": 52,
|
|
"lh": 52,
|
|
"brf": 12,
|
|
"brh": 12,
|
|
"fnf": 10,
|
|
"fnh": 10
|
|
}
|
|
},
|
|
"@repo/core-api": {
|
|
"statements": 100,
|
|
"branches": 100,
|
|
"functions": 100,
|
|
"lines": 100,
|
|
"counts": {
|
|
"lf": 17,
|
|
"lh": 17,
|
|
"brf": 0,
|
|
"brh": 0,
|
|
"fnf": 0,
|
|
"fnh": 0
|
|
}
|
|
},
|
|
"@repo/core-consent": {
|
|
"statements": 99.72,
|
|
"branches": 94.85,
|
|
"functions": 97.06,
|
|
"lines": 99.72,
|
|
"counts": {
|
|
"lf": 351,
|
|
"lh": 350,
|
|
"brf": 97,
|
|
"brh": 92,
|
|
"fnf": 34,
|
|
"fnh": 33
|
|
}
|
|
},
|
|
"@repo/core-dsr": {
|
|
"statements": 100,
|
|
"branches": 92.48,
|
|
"functions": 97.44,
|
|
"lines": 100,
|
|
"counts": {
|
|
"lf": 697,
|
|
"lh": 697,
|
|
"brf": 133,
|
|
"brh": 123,
|
|
"fnf": 39,
|
|
"fnh": 38
|
|
}
|
|
},
|
|
"@repo/core-shared": {
|
|
"statements": 98.15,
|
|
"branches": 96.12,
|
|
"functions": 92.73,
|
|
"lines": 98.15,
|
|
"counts": {
|
|
"lf": 1133,
|
|
"lh": 1112,
|
|
"brf": 335,
|
|
"brh": 322,
|
|
"fnf": 110,
|
|
"fnh": 102
|
|
}
|
|
},
|
|
"@repo/core-ui": {
|
|
"statements": 100,
|
|
"branches": 91.35,
|
|
"functions": 100,
|
|
"lines": 100,
|
|
"counts": {
|
|
"lf": 412,
|
|
"lh": 412,
|
|
"brf": 104,
|
|
"brh": 95,
|
|
"fnf": 18,
|
|
"fnh": 18
|
|
}
|
|
},
|
|
"@repo/marketing-pages": {
|
|
"statements": 95.93,
|
|
"branches": 83.93,
|
|
"functions": 100,
|
|
"lines": 95.93,
|
|
"counts": {
|
|
"lf": 762,
|
|
"lh": 731,
|
|
"brf": 112,
|
|
"brh": 94,
|
|
"fnf": 32,
|
|
"fnh": 32
|
|
}
|
|
},
|
|
"@repo/media": {
|
|
"statements": 97.15,
|
|
"branches": 90.63,
|
|
"functions": 100,
|
|
"lines": 97.15,
|
|
"counts": {
|
|
"lf": 561,
|
|
"lh": 545,
|
|
"brf": 96,
|
|
"brh": 87,
|
|
"fnf": 24,
|
|
"fnh": 24
|
|
}
|
|
},
|
|
"@repo/navigation": {
|
|
"statements": 98.06,
|
|
"branches": 95,
|
|
"functions": 100,
|
|
"lines": 98.06,
|
|
"counts": {
|
|
"lf": 309,
|
|
"lh": 303,
|
|
"brf": 40,
|
|
"brh": 38,
|
|
"fnf": 13,
|
|
"fnh": 13
|
|
}
|
|
}
|
|
}
|
|
}
|