core: split mod-check/scope-walk.ts by responsibility
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- devtools
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 29 min
- PR fusionados (30 d)
- 138
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de kwitsch/claude-code-plugin-tooling
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
kwitsch/claude-code-plugin-tooling#219 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
kwitsch/claude-code-plugin-tooling#210 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
kwitsch/claude-code-plugin-tooling#212 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
kwitsch/claude-code-plugin-tooling#209 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
kwitsch/claude-code-plugin-tooling#208 ·
Los mantenedores suelen responder en 1 día
Todos los issues de kwitsch/claude-code-plugin-tooling
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
makecindy/cindy#15342 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
no-repo-link tool-submission
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
BraveOPotato/NoSignups#2618 ·
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Priyanshu-byte-coder/devtrack#4067 ·
Los mantenedores suelen responder en 1 día