mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(router-utils): kept-code warnings name the true cause and a fix that works (review finding 5, R149 answers E)
- the verb is the statement's per binding (changes or uses), what it
changes counted in its own text and the function bodies it runs, not in a
writer of a name it reads;
- "change X in a statement of its own" only for a statement of several
statements changing X; one call kept by a route-module binding: "run that
statement in the code that needs it"; by another option's binding: move
both and the statement to their own module;
- unused code (R148) is named ("`debugDump` (line N), which nothing uses")
with "delete it", and every binding it keeps eager is reported (E);
- a follower kept by V (code that runs later changes what it uses: f08, c15)
is reported, naming that later write;
- copied primitive consts neither keep a follower nor are reported;
- a write of an import joins no cluster: the import is no declaration of
the module (b07: no warning, no route-module export, the chunk imports it
itself).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
226ab39466
commit
df39fae437
8 changed files with 204 additions and 53 deletions
Loading…
Add table
Add a link
Reference in a new issue