-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtest-typecheck-debt.json
More file actions
13 lines (13 loc) · 2.88 KB
/
Copy pathtest-typecheck-debt.json
File metadata and controls
13 lines (13 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"_comment": "Per-file tsc error debt of the @objectstack/plugin-sharing TEST layer (#5286). `tsconfig.test.json` compiles `src/**/*.test.ts` — which `tsconfig.json` excludes and therefore no gate ever read — and every file below still carries errors from before that gate existed. THIS FIELD IS GENERATED: every regeneration rewrites it from scripts/check-test-typecheck.mts, and the EXACT ratchet below requires a regeneration on every repair — so an edit made here is gone by the next one. Anything true of THIS package goes in the sibling `_note` field, which is authored, is preserved verbatim, and is never written by the generator (#12624). This comment states NO cause for the errors, deliberately: the classes differ per package and per file, they move as the debt is paid down, and a cause written here is rewritten verbatim into every ledger by every regeneration — so it outlives its own repair and cannot be corrected in the file where it is read. Measure instead, before repairing anything: `tsc --noEmit --pretty false -p tsconfig.test.json` in the package prints the real classes with their TS codes. Each entry maps a file to its per-SIGNATURE error counts, never to a bare total (#13470): a signature is the TS code plus the diagnostic message with structural type blobs collapsed, and it carries NO line or column — so the pin survives edits that move code around, and only stops matching when the error itself becomes a different error. EXACT ratchet, judged by re-running tsc: a file that gains errors is red, a file that loses them is red until its number is re-recorded, a file that reaches zero is red until its entry is deleted, a signature that ARRIVES or VANISHES is red even when the file total is unchanged, and a file NOT listed here may have no errors at all. Regenerate with: pnpm --filter @objectstack/plugin-sharing gen:test-typecheck-debt",
"_note": "STARTING LEDGER, opened by #14062 under the director ruling of 2026-09-01 (maintainer verbatim: 「同意」), which carries the #5286 maintainer authority for it. 3 errors over 2 files, every one PRE-EXISTING — the build config's `exclude` named `**/*.test.ts`, so none of this package's 30 test files reached a tsc program its `typecheck` runs. ⚠️ The residue is small enough to look like something this PR should simply have fixed; it was ledgered instead because the ruling onboards the family UNIFORMLY and states that repair follows the ratchet's own shrink-only discipline rather than riding along with the instrument that first sees it. Three entries is a cheap paydown card, and the ratchet reddens if anyone re-records them upward instead.",
"entries": {
"src/position-graph.test.ts": {
"TS6133: 'options' is declared but its value is never read.": 1
},
"src/sharing-rule.test.ts": {
"TS18048: 'foreign' is possibly 'undefined'.": 1,
"TS6133: 'r' is declared but its value is never read.": 1
}
}
}