Skip eol-normalizer's work on edits that already have the right line endings
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Read the eol-normalizer hook and the hook-budget contract referenced by the acceptance criteria; inspect how the PostToolUse payload supplies the edited file. Start by tracing when normalization work begins and how the existing fixtures verify output bytes. Done means unchanged line endings take no normalization work beyond one process start, wrong line endings still produce the existing fixture output, and the budget contract matches.
索引モデルが issue の本文から書いたものです。
説明
Context
With the formatter rows on PostToolUse (#20551), eol-normalizer runs one Write|Edit row with no if, so its full script runs on every Write and Edit, whatever the file type. Measured on Windows (Claude Code 2.1.335, 3 runs, CPU 38 to 74%): about 1 s per edit, which sets the per-edit hook wait even for a .txt edit no formatter matches. On PostToolBatch it skipped most batches, so its median there was about 170 ms.
Proposed work
- Skip the normalization work when the edited file already has the line endings the repository expects, before any slower step runs.
- Or run the row with
async: trueif nothing downstream needs the normalized bytes before the next tool call. Record which and why.
Acceptance criteria
- An Edit of a file that already has the expected line endings costs eol-normalizer no more than one process start and no normalization work, shown by a test that feeds the PostToolUse payload.
- An Edit that introduces wrong line endings is still normalized, with output byte-identical to today on the existing fixtures.
- The hook-budget contract's eol-normalizer row matches.
References
- #20551 (PR #20927), #20549
- 主要言語
- Shell
- スター
- 22
- フォーク
- 2
- 平均マージ
- 3時間 20分
- マージ済み PR(30日)
- 956
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
melodic-software/claude-code-plugins のほかの issue
-
host-run needs-research
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
melodic-software/claude-code-plugins#21140 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
melodic-software/claude-code-plugins#21103 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
host-run
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
melodic-software/claude-code-plugins#21053 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melodic-software/claude-code-plugins#21021 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
melodic-software/claude-code-plugins#20960 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
melodic-software/claude-code-plugins の issue をすべて見る
似ている issue
-
documentation enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aws/aws-networking-best-practices#256 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
fossi-foundation/globalfoundries-pdk-libs-gf180mcu_fd_pv#61 ·
-
openai-directory
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
smores56/homelab-platform#289 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
omacom/omarchy#21787 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信