Repository navigation
fix(code-tidying): count "do not edit" as a generated marker only as a whole-file notice - #16338
Conversation
…a whole-file notice The comment lint skipped any file whose first 10 lines held the substring "do not edit", so a hand-written "# do not edit the order below" exempted the whole file. The marker grammar now lives in one file, scripts/generated-marker.ere, read by both the comment lint and the remove-comments audit's upstream note. sync-managed and @generated match as before; "do not edit" counts only at the end of a line, before punctuation or "this file", "this copy", "by hand", "manually", "directly", or on a line that also says "generated". Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: no security issues foundThis is a full review of the first head (not blocking only). I read every hunk of all 9 changed files. What the change does: the comment lint skipped any file whose first 10 lines contained Why there is nothing to report:
The PR description and the prior-findings file contain no embedded instructions. There are no earlier findings from this lane and no settled threads. critical-findings: 0 |
|
claude-review reviewed Code review: PR #16338 (head 1251924)No findings. I read all 9 changed files in the diff. What changes. The
What I checked:
Not verified. The test counts in the PR body (55 and 257 passed, shellcheck clean) and the before/after count over every tracked file's first 10 lines are the author's claims. I had no shell and couldn't run them. Possible gap, not a finding. The new patterns no longer skip a few hand-written notices where Verifier dropped 0 of 0 candidates. |
Refs: #16341
Summary
The comment lint skipped any file whose first 10 lines held the substring
do not edit, so a hand-written# do not edit the order belowexempted the whole file from the lint. This narrows the marker so only a whole-file notice counts, a condition for moving the lint fromreporttoblock.Fix
plugins/code-tidying/scripts/generated-marker.ere(one ERE per line, read withgrep -iE -f), used by both the comment lint and theremove-commentsaudit's upstream note indetect.sh. It ships beside the hook as a new asset inentries.json.sync-managedand@generatedmatch as before.do not editcounts only at the end of the line, before punctuation, beforethis file,this copy,by hand,manuallyordirectly, or on a line that also has the wordgenerated(Go'sCode generated ... DO NOT EDIT., this repo'sGENERATED from ... Do not edit this copy:headers).--helptext, README and the audit action doc state the new rule. No setting added: the marker list has no existing settings pattern to hang off, so it stays a fixed default.Verification
plugins/code-tidying/git-hooks/comment-lint.test.sh: 55 passed, 0 failed. New cases: 11 real marker forms still skip;# do not edit the order belowandDo not edit historical entries; ...are judged (both failed before the fix).plugins/code-tidying/skills/remove-comments/scripts/detect.test.sh: 257 passed. New cases: Go andGENERATED from ... Do not edit this copy:headers get the upstream note;# do not edit the order belowdoes not.lefthook-remote.test.sh(14 passed) andlib/git-hooks/sh-entries.test.sh(181 passed); shellcheck clean on the four changed shell files..githubnode suite, which CI runs.Related
Remaining
reporttoblock, which this marker fix is a condition for.🤖 Generated with Claude Code