core: split mod-check/scope-walk.ts by responsibility
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
- Issue-Typ
- Refactoring
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- devtools
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 0
- Forks
- 0
- Ø Merge
- 29 Min.
- Gemergte PRs (30 T.)
- 138
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus kwitsch/claude-code-plugin-tooling
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
kwitsch/claude-code-plugin-tooling#219 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
kwitsch/claude-code-plugin-tooling#210 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 54/100
kwitsch/claude-code-plugin-tooling#212 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
kwitsch/claude-code-plugin-tooling#209 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
kwitsch/claude-code-plugin-tooling#208 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in kwitsch/claude-code-plugin-tooling
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
makecindy/cindy#15342 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
no-repo-link tool-submission
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 74/100
BraveOPotato/NoSignups#2618 ·
-
enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
-
bug needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Priyanshu-byte-coder/devtrack#4067 ·
Maintainer antworten meist innerhalb von 1 Tag