Skip to content

docs(eol-normalizer): repair stale comments in normalize-eol.sh and README wording - #14064

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
chore/tidy-adhoc-plugins-eol-normalizer-2026-11-08
Nov 8, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
chore/tidy-adhoc-plugins-eol-normalizer-2026-11-08

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Refs: #12894

Summary

Ad hoc tidy sweep of plugins/eol-normalizer/** (anchor commit: none, ad hoc). Several comments in the sourced library hooks/normalize-eol.sh no longer matched the plugin:

  • The header named a PostToolUse hook, but hooks/hooks.json registers PostToolBatch.
  • A comment pointed at hooks/quirks.md, which does not exist.
  • Comments described a pre-commit consumer and a rewrite-disclosure snapshot that the plugin no longer has. The hook comment says there is no pre-commit entry, and the hook splits plan and apply to skip its gitignore check.

The README said a failed ignore check "acts as before". It now says the file is treated as not ignored, which matches hook::file_is_gitignored ("FAILS TOWARD ACTING"). Comment and prose only; git diff shows no changed non-comment line in the script.

Fix

Tidying File Lines LOC
P-2, Stale cross-reference (PostToolUse to PostToolBatch) plugins/eol-normalizer/hooks/normalize-eol.sh 3 +1 -1
P-1, Dead reference (hooks/quirks.md) plugins/eol-normalizer/hooks/normalize-eol.sh 217 +1 -1
P-2, Stale description (pre-commit consumer, disclosure snapshot) plugins/eol-normalizer/hooks/normalize-eol.sh 218-223 +3 -3
Beck #15, history-narration residue and em dashes plugins/eol-normalizer/hooks/normalize-eol.sh 5, 10, 27-29, 34-36, 45, 93-94, 241, 261 +10 -11
P-2 / Beck #3, README wording ("acts as before", "We") plugins/eol-normalizer/README.md 38, 55 +2 -2

Plus the changelog fragment .changes/eol-normalizer/chore-tidy-adhoc-plugins-eol-normalizer-2026-11-08-e2b8b01b.md (patch).

Verification

  • The script diff contains only comment lines: filtering git diff -U0 to changed lines that are not comments returns nothing.
  • shellcheck -x plugins/eol-normalizer/hooks/normalize-eol.sh: clean.
  • bash plugins/eol-normalizer/hooks/eol-git-add.test.sh: 12 passed, 0 failed.
  • bash plugins/eol-normalizer/hooks/eol-normalizer.test.sh: PASS=64 FAIL=0.
  • The changelog fragment passed scripts/new-changelog-fragment.sh --stdin validation.

Related

  • Not touched, by the tidy exclusions: the hook-wired hooks/eol-normalizer.sh and hooks/exec-bash.mjs, hooks/hooks.json, and the shared copies hooks/hook-utils.sh and lib/prerequisites.*.
  • Local shellcheck 0.9.0 reports SC2317 at hooks/eol-normalizer.test.sh:285. The file already carries the SC2329 directive that the repository's ShellCheck 0.11+ (per .shellcheckrc) uses for this case, so this is a local tool-version difference, not a finding.
  • Deferred by the scope budget: none. The diff is well under the 200-line / 8-file target, so nothing was cut.
  • /simplify was not chained: the tidy skill's mutation gate forbids it, and the diff is comment and prose only.
  • No issue was filed and no follow-up is needed.

Merge-Risk: max=LOW demote=false head=b63eb0c2911cb93fe9ebc33f7b60147c1adeb75a rubric=8.1.2 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head b63eb0c2911cb93fe9ebc33f7b60147c1adeb75a. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed b63eb0c2911cb93fe9ebc33f7b60147c1adeb75a: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no issues found

I read every hunk of all 3 changed files:

  • .changes/eol-normalizer/...-e2b8b01b.md: a new changelog fragment (bump: patch) that is prose only.
  • plugins/eol-normalizer/README.md: two sentences reworded. The first replaces "acts as before" with "treats the file as not ignored" when the gitignore check fails. The second replaces "We" with "The plugin". These lines describe behavior and do not change it. They are documentation, not standing instructions to a model, so nothing guarded is removed.
  • plugins/eol-normalizer/hooks/normalize-eol.sh: every changed line in this sourced library starts with #. The edits fix the hook-event name in the header (PostToolUse → PostToolBatch), drop a dead hooks/quirks.md reference, remove mentions of a pre-commit consumer, replace em dashes and remove history narration. No executable line changed. That includes the perl -pi rewrites, the mktemp + cp -p + mv fallback, and the git -C <root> check-attr resolution.

None of the changed files matches a listed trusted path. The diff touches no plugin manifest, workflow, trust control, merge hold, token scope, or hook registration. It deletes or narrows no standing instruction in CLAUDE.md, AGENTS.md, a rules file, a skill or agent body, or a hook block list or allowlist. No instruction-surface finding applies.

The PR context file contains no embedded directives aimed at this lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed b63eb0c2911cb93fe9ebc33f7b60147c1adeb75a: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

This PR only changes comments and README text in plugins/eol-normalizer, plus a patch changelog fragment. I read every hunk of all 3 changed files. In normalize-eol.sh, every - and + line is a comment, so the script's behavior does not change.

I checked each corrected statement against the code at head:

  • Header now says PostToolBatch. hooks/hooks.json registers PostToolBatch (hooks.json#L4). eol-normalizer.sh describes itself as a PostToolBatch hook.
  • Plan/apply split exists to skip the gitignore check. The hook calls normalize_eol_plan and runs hook::gitignored_out_of_scope only when the plan says a rewrite is needed (eol-normalizer.sh#L58-L61). The new comment at normalize-eol.sh:221-222 says the same.
  • Removed pre-commit consumer. eol-normalizer.sh:7 and README.md:44 both say there is no pre-commit entry, so removing that mention is correct.
  • README: a failed ignore check treats the file as not ignored. hook::file_is_gitignored returns 1 (not ignored) when git is missing, there is no repository, or check-ignore fails (hook-utils.sh#L1034-L1055). The new README wording matches.
  • normalize_eol_file reports the same action whether or not it rewrote. The function prints $action either way (normalize-eol.sh#L223-L231).

The changelog fragment's bump: patch fits a change that touches only comments and docs. No plugin manifest changed. The PR names no closing issue (it says "Refs: #12894"), so there were no acceptance criteria to check. The PR context contains no instructions aimed at this lane.

Not verified: I had no shell, so I did not run anything. The shellcheck result and test counts in the PR body are the author's claims.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head b63eb0c2911cb93fe9ebc33f7b60147c1adeb75a, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for b63eb0c

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-14064-b63eb0c2911cb93fe9ebc33f7b60147c1adeb75a, expires on 2026-12-08.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit 06a0273 Nov 8, 2026
62 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the chore/tidy-adhoc-plugins-eol-normalizer-2026-11-08 branch November 8, 2026 06:38
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 06a0273c54f1e72b780d93ee36f1b5997e6cf753; later checks count it verified from this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants