core: split mod-check/scope-walk.ts by responsibility
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- devtools
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- 平均マージ
- 29分
- マージ済み PR(30日)
- 138
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kwitsch/claude-code-plugin-tooling のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
kwitsch/claude-code-plugin-tooling#219 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
kwitsch/claude-code-plugin-tooling#210 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
kwitsch/claude-code-plugin-tooling#212 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
kwitsch/claude-code-plugin-tooling#209 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
kwitsch/claude-code-plugin-tooling#208 ·
メンテナーはふだん 1 日以内に返信
kwitsch/claude-code-plugin-tooling の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
makecindy/cindy#15342 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
no-repo-link tool-submission
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
BraveOPotato/NoSignups#2618 ·
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Priyanshu-byte-coder/devtrack#4067 ·
メンテナーはふだん 1 日以内に返信