[PR #1705] [MERGED] [codex] Enforce full Knip unused checks #5221

Closed
opened 2026-10-22 04:14:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1705
Author: @Xelvanis
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @Xelvanis

Base: refactor ← Head: codex/remove-unused-font-file-url-helper


📝 Commits (1)

  • 971f090 Enforce full Knip unused checks

📊 Changes

3 files changed (+3 additions, -10 deletions)

View changed files

📝 .github/workflows/ci.yml (+1 -2)
📝 package.json (+2 -2)
📝 src/shared/api/local-file-api.ts (+0 -6)

📄 Description

Linked issue

No linked issue; developer tooling cleanup after the full Knip sweep.

Why this change

  • Full Knip is now clean, so the unused-code check can move from a soft file-only report to an enforceable full unused-code gate.
  • The last stale export, fontFileUrlFromPath, was superseded by the async font resolver and kept full Knip failing.

What changed

  • Remove the unused fontFileUrlFromPath export from src/shared/api/local-file-api.ts.
  • Change pnpm check:unused from file-only Knip to full knip --no-config-hints.
  • Add pnpm check:unused to the aggregate pnpm check command.
  • Make the CI unused-code step blocking instead of continue-on-error.

Refactor impact

Primary owner:

  • Shared API / developer check tooling.

Impact areas reviewed:

  • src/shared/api/local-file-api.ts custom font URL helper surface.
  • src/app/App.tsx custom font loader still uses resolveFontFileUrl.
  • package.json check scripts.
  • .github/workflows/ci.yml frontend organization job.

Boundary notes:

  • Shared API remains a runtime adapter boundary; no feature, engine, Rust, or remote-runtime routing changes were added.
  • CI now uses the same canonical pnpm check:unused script as local validation.

Pressure points touched:

  • None of the named pressure points were touched.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Ran pnpm check:unused; full Knip passed.
  • Ran pnpm typecheck; TypeScript project build passed.
  • Ran pnpm check; line endings, architecture, frontend typecheck, Rust check, docs check, and full Knip all passed.
  • Ran git diff origin/refactor...HEAD --check; no whitespace errors.
  • No browser/Tauri manual verification was run because this is check tooling plus dead export cleanup only.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

Notes:

  • No user-facing docs or changelog update needed; this is developer tooling and shared API surface cleanup.
  • This PR does not restore old staging/package-workspace/release claims.

UI evidence

Not applicable; no visible UI changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1705 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `codex/remove-unused-font-file-url-helper` --- ### 📝 Commits (1) - [`971f090`](https://github.com/Pasta-Devs/Marinara-Engine/commit/971f0903ae680e99e5c9cd8c41f3154f7344d87b) Enforce full Knip unused checks ### 📊 Changes **3 files changed** (+3 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+1 -2) 📝 `package.json` (+2 -2) 📝 `src/shared/api/local-file-api.ts` (+0 -6) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue <!-- Every user-facing PR should reference a feature request or issue report when practical. --> No linked issue; developer tooling cleanup after the full Knip sweep. ## Why this change <!-- What user problem, bug, refactor goal, or maintenance need does this solve? --> - Full Knip is now clean, so the unused-code check can move from a soft file-only report to an enforceable full unused-code gate. - The last stale export, `fontFileUrlFromPath`, was superseded by the async font resolver and kept full Knip failing. ## What changed <!-- List the key changes in this PR. --> - Remove the unused `fontFileUrlFromPath` export from `src/shared/api/local-file-api.ts`. - Change `pnpm check:unused` from file-only Knip to full `knip --no-config-hints`. - Add `pnpm check:unused` to the aggregate `pnpm check` command. - Make the CI unused-code step blocking instead of `continue-on-error`. ## Refactor impact Primary owner: <!-- Examples: app shell, catalog, chat mode, roleplay mode, game mode, runtime generation, world-state, shared API, engine generation, Rust storage, imports, remote runtime. --> - Shared API / developer check tooling. Impact areas reviewed: - `src/shared/api/local-file-api.ts` custom font URL helper surface. - `src/app/App.tsx` custom font loader still uses `resolveFontFileUrl`. - `package.json` check scripts. - `.github/workflows/ci.yml` frontend organization job. Boundary notes: <!-- Note engine/shared-api/feature/Rust/remote-runtime boundaries. Say "none" only if you checked. --> - Shared API remains a runtime adapter boundary; no feature, engine, Rust, or remote-runtime routing changes were added. - CI now uses the same canonical `pnpm check:unused` script as local validation. Pressure points touched: <!-- Mention ModeSurface, GameSurface, shared mode UI, src-tauri/src/lib.rs command registration, or import modules if touched. --> - None of the named pressure points were touched. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app/runtime, step by step. If an AI agent filled this out, verify it yourself before ticking boxes. --> - Ran `pnpm check:unused`; full Knip passed. - Ran `pnpm typecheck`; TypeScript project build passed. - Ran `pnpm check`; line endings, architecture, frontend typecheck, Rust check, docs check, and full Knip all passed. - Ran `git diff origin/refactor...HEAD --check`; no whitespace errors. - No browser/Tauri manual verification was run because this is check tooling plus dead export cleanup only. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims Notes: - No user-facing docs or changelog update needed; this is developer tooling and shared API surface cleanup. - This PR does not restore old staging/package-workspace/release claims. ## UI evidence <!-- Add before/after screenshots or recordings for visible UI changes. --> Not applicable; no visible UI changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:21 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5221
No description provided.