core: split mod-check/scope-walk.ts by responsibility
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- devtools
Direzione di ricerca
Read packages/core/src/mod-check/scope-walk.ts and the imports in packages/core/src/mod-check.ts and packages/core/src/mod-check.test.ts; use closed issue #142 and PR #196 as references for the split and verification approach. Keep function bodies and types unchanged, preserve the collectUses and isBound imports, and ensure the new modules and original file are each at most 500 lines. Run the listed lint, test, mod:check, and e2e commands, then compare the public exports and distribution and tarball file lists.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
packages/core/src/mod-check/scope-walk.ts has about 609 lines after PR #198 (alias, write and for-of tracking). oxlint reports landmines(max-file-lines): This file has 609 lines (limit 500). Split it by responsibility. on every pnpm lint run. The file mixes scope construction and binding lookup, access collection (member, destructuring, for-of heads) and the alias and write resolution. Closed issue #142 split mod-check.ts the same way; this file was left whole on purpose in PR #198 to keep that PR a behavior change only.
Proposal
Split scope-walk.ts into modules under packages/core/src/mod-check/ by responsibility, for example scope and binding lookup (scope.ts), access collection, and alias and write resolution, keeping collectUses and isBound importable from scope-walk.ts so mod-check.ts and the tests keep their imports. Recommendation: a pure move, keep every function body and type byte for byte, add no export to packages/core/src/index.ts, keep each new file under 500 lines and the mod-check/ folder within the file-count limit the lint enforces. Verify like PR #196: the Object.keys and ^export lines of packages/core/dist/index.d.mts, the dist file list and the tarball file lists of the five packages stay identical before and after.
Design points
No response
Package
core
Scope
packages/core/src/mod-check/ (scope-walk.ts and the new modules) and the imports in packages/core/src/mod-check.ts and packages/core/src/mod-check.test.ts only. Changeset: empty (no user-visible change).
Acceptance
pnpm lintno longer reportsmax-file-linesfor any file underpackages/core/src/mod-check/, and reports no new warning.packages/core/src/mod-check/scope-walk.tsand every new module are at most 500 lines.- The public exports, the
distfile list and the tarball file lists of the five packages are unchanged. pnpm test,pnpm mod:checkandpnpm test:e2epass with the goldens underfixtures/*/expected/unchanged.
Relations
- Originating PR: #198
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Merge medio
- 29m
- PR unite (30g)
- 138
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di kwitsch/claude-code-plugin-tooling
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
kwitsch/claude-code-plugin-tooling#219 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
kwitsch/claude-code-plugin-tooling#210 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
kwitsch/claude-code-plugin-tooling#212 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
kwitsch/claude-code-plugin-tooling#209 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
kwitsch/claude-code-plugin-tooling#208 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di kwitsch/claude-code-plugin-tooling
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
makecindy/cindy#15342 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
no-repo-link tool-submission
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
BraveOPotato/NoSignups#2618 ·
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Priyanshu-byte-coder/devtrack#4067 ·
I maintainer di solito rispondono entro 1 giorno