knip: unused export deferredLabel in equivalence-deferred.mjs (from #4751)

Open Beginner friendly
#4,937 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
85/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
bun, javascript
Domain
tooling

Research direction

Open .agents/skills/senpi-qa/scripts/lib/equivalence-deferred.mjs and remove the export keyword from the deferredLabel const at line 47 so it is module-private. Run bun run knip:check and node --test .agents/skills/senpi-qa/scripts/lib/*.test.mjs to confirm the unused export vanishes and tests pass. Done means knip no longer lists deferredLabel and bun run check passes.

Written by the indexing model from the issue text.

Description

Summary

bun run knip:check on main reports deferredLabel in .agents/skills/senpi-qa/scripts/lib/equivalence-deferred.mjs as an unused export. It is only used inside its own module (by goldenCellVerdict), so the export is dead surface and keeps knip red.

Evidence

  • knip output on main (origin/main 09f556dfc9):
    Unused exports (2)
    deferredLabel                      .agents/skills/senpi-qa/scripts/lib/equivalence-deferred.mjs:47:14
    
    (the other finding, discoveryNamesItsServer, is tracked separately in #4933)
  • .agents/skills/senpi-qa/scripts/lib/equivalence-deferred.mjs:47: export const deferredLabel = (entry) => ...; the only reference is line 53 in the same file.
  • git grep -nw deferredLabel origin/main finds no importer (tests included).
  • Added in ed550e248e ("test(senpi-qa): EQ deferred-goldens list for the linux-x64 E25, E28 and E29 cells (P0-05e)"), merged with #4751 (merge c30dc42821).

Fix

Drop export so deferredLabel is module-private. No knip ignore or baseline entry, so coverage does not shrink. Acceptance: knip no longer lists deferredLabel; node --test .agents/skills/senpi-qa/scripts/lib/*.test.mjs and bun run check pass.

Related: #4751, #4933.

Hosted check

Fails the hosted CI check Static checks (its knip:check step: Unused exports: deferredLabel .agents/skills/senpi-qa/scripts/lib/equivalence-deferred.mjs:47:14) on any branch based before the fix.

Dominant language
TypeScript
Stars
500
Forks
155
Avg merge
21h 52m
Merged PRs (30d)
699

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from code-yeongyu/senpi

All issues in code-yeongyu/senpi

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.