chore(maintainability): add baseline metrics gate

This commit is contained in:
Tam Nhu Tran committed 2026-02-12 12:57:24 +07:00
1 parent e68ae5b166
commit 975c864f94
4 files changed
+296

No files matched your search

@@ -0,0 +1,9 @@
{
"sourceDirectory": "src",
"largeFileThresholdLoc": 350,
"typeScriptFileCount": 338,
"locInSrc": 66207,
"processExitReferenceCount": 152,
"synchronousFsApiReferenceCount": 842,
"largeFileCountOver350Loc": 52
}
+15
View File
@@ -191,6 +191,21 @@ All criteria achieved:
- [x] Clear domain boundaries
- [x] Consistent naming conventions
## Maintainability Gate (Issue #539 Foundation)
- Baseline metrics artifact: `docs/metrics/maintainability-baseline.json`
- Generate or refresh baseline:
- `bun run maintainability:baseline`
- `npm run maintainability:baseline`
- Run regression check gate:
- `bun run maintainability:check`
- `npm run maintainability:check`
The check mode supports a maintainability regression gate that blocks increases in:
- `process.exit` references
- synchronous fs API references
- files over 350 LOC
---
## Related Documentation