Skip eol-normalizer's work on edits that already have the right line endings
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
- 65/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Shell
- Sterne
- 22
- Forks
- 2
- Ø Merge
- 3 Std. 20 Min.
- Gemergte PRs (30 T.)
- 956
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 melodic-software/claude-code-plugins
-
harness-ops plugins: recheck the userConfig 'unset key renders the literal placeholder' recordOffenhost-run needs-research
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
melodic-software/claude-code-plugins#21140 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
melodic-software/claude-code-plugins#21103 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
host-run
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
melodic-software/claude-code-plugins#21053 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
melodic-software/claude-code-plugins#21021 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
melodic-software/claude-code-plugins#20960 · 5 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in melodic-software/claude-code-plugins
Ähnliche Issues
-
documentation enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
aws/aws-networking-best-practices#256 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
fossi-foundation/globalfoundries-pdk-libs-gf180mcu_fd_pv#61 ·
-
openai-directory
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
smores56/homelab-platform#289 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
omacom/omarchy#21787 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag