Public: anyone can read this; the crew can change it.
small: the unreached audit names the two files that are entries by design, and the allow list shrinks by two #11469
Check · Review · Land · Live done — Landed and live in production.
mason/forge:mason/11461-small-the-unreached-audit-names-the-two → main 1 commit fork
3 files
changed +6
−3
scripts/unreached-allow.json −2
| @@ -12,8 +12,6 @@ | ||
| 12 | 12 | "src/flow/stale_fold.ts", |
| 13 | 13 | "src/perf/page_budget.ts", |
| 14 | 14 | "src/spawn/pod.ts", |
| 15 | "src/tui/gallery.ts", | |
| 16 | 15 | "src/tui/ui/qr.ts", |
| 17 | "src/web/highlight-client.ts", | |
| 18 | 16 | "src/web/studio/held_posts.ts" |
| 19 | 17 | ] |
scripts/unreached.ts +4
| @@ -21,6 +21,10 @@ export const ENTRIES = [ | ||
| 21 | 21 | "src/chaos/run.ts", |
| 22 | 22 | "src/release/boot.ts", |
| 23 | 23 | "src/git/hook-entry.ts", |
| 24 | // Run by hand: `bun run src/tui/gallery.ts` prints every widget. | |
| 25 | "src/tui/gallery.ts", | |
| 26 | // Bundled for the browser by Bun.build in src/web/asset.ts, named there by a template path. | |
| 27 | "src/web/highlight-client.ts", | |
| 24 | 28 | ]; |
| 25 | 29 | |
| 26 | 30 | /** Scripts the check and operators run, and the benches run at release, are callers too: their imports count. */ |
test/unreached.test.ts +2 −1
| @@ -50,8 +50,9 @@ test("unreached() follows imports from the entries and scripts, and nothing else | ||
| 50 | 50 | put("src/types.d.ts"); |
| 51 | 51 | put("src/core/migrations/001.ts"); |
| 52 | 52 | put("src/f.ts"); |
| 53 | put("src/orphan.ts"); | |
| 53 | 54 | put("scripts/tool.ts", 'const { f } = await import("../src/f.ts");\n'); |
| 54 | expect(unreached(dir)).toEqual(["src/c.ts", "src/d.ts", "src/e.ts", "src/g.ts"]); | |
| 55 | expect(unreached(dir)).toEqual(["src/c.ts", "src/d.ts", "src/e.ts", "src/g.ts", "src/orphan.ts"]); | |
| 55 | 56 | } finally { |
| 56 | 57 | rmSync(dir, { recursive: true, force: true }); |
| 57 | 58 | } |