Pin the product-name guard's * rule and describe its comment handling in the header (#1168) - #1206
Merged
Merged
Conversation
…#1168, c1) The 38 bare "Bridge" words in the displayed text of `outstandings-copy.ts`, `tally-error-copy.ts`, `tally-capability-evidence.tsx` and `tally-company-selection.ts` now read "ComplyEaze Bridge"; no other word changes. The tests that compare those texts are changed with them, each to the fuller text, and a guard over the four files fails on a bare "Bridge" outside comments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 26 bare "Bridge" words in the displayed text of the mirror-proof, all-clients, ledger-entries, outstandings, source-draft and outstandings-evidence screens now read "ComplyEaze Bridge"; no other word changes. Four test expectations that quote those texts, and the client-grouping harness's copy of the group-label error, take the fuller text, and the guard's list gains the six files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The persisted-profile test matched two fragments of the action with a pattern; it now compares the whole guidance, category and action, with assert.deepEqual, like the other tests in the file. A change to the sentence's last clause passed the patterns and fails this. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…full-name # Conflicts: # scripts/frontend-product-name.test.mjs # scripts/tally-error-copy.test.mjs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ens (#1168, c2) The 29 bare "Bridge" words in the displayed text of main.tsx (including the sidebar brand and the navigation's aria-label, as the maintainers chose on #1168), JournalPostingScreen.tsx, NativeLifecycleController.tsx and ErrorBoundary.tsx now read "ComplyEaze Bridge"; no other word changes. The tests that quote those texts or find the navigation by its label take the fuller text. The guard's list gains the four files, and it now skips every line of a block comment that spans several lines, such as main.tsx's multi-line JSX comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ll-name # Conflicts: # scripts/frontend-product-name.test.mjs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1168, from #1190's review) The guard skipped the whole line on which a multi-line comment closes, and a `{/*` line that closes its comment and then shows text, so a bare "Bridge" after `*/` passed. The scan is now a function that keeps only the text outside comments on each line, tested on both cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sing-line # Conflicts: # scripts/frontend-product-name.test.mjs
…ader (#1168, from #1203's review) A line starting with `*` but no space is not a doc-comment continuation and is now pinned as checked: a mutant back to any leading `*` fails. The comment above SOURCES now describes the rule as bareBridges does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r-and-header # Conflicts: # scripts/frontend-product-name.test.mjs
Member
|
Independent review (local, Opus) of 62aae16 Verdict: clean (no P1/P2/P3). Test only; no pinned path. Reviewed clean at 62aae16. Mark it ready and I'll queue that same head.
|
Contributor
Author
akshit-khandelwal47
marked this pull request as ready for review
October 4, 2026 21:21
Contributor
Author
|
Ready for review at 62aae16 |
lamemustafa
enabled auto-merge
October 4, 2026 21:23
Member
|
Queued at 62aae16 (the reviewed head): it enters the merge queue as soon as this head's pull-request checks finish green. Please push nothing more here. If it leaves the queue, I'll say why here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1168
Summary
The two optional P3s from the review of #1203, as promised there.
*rule is pinned.bareBridgestreats only a doc-comment continuation as a comment line:*followed by a space. That narrowing from the old "any line starting with*" is meant, because a line like*Bridgeis not a comment and should be checked. A new case assertsbareBridges("*Bridge")finds it. The reviewer's mutant, back to any leading*, now fails.SOURCESdescribed the old rule ("a line starting with a comment marker, or any line inside a block comment that spans several lines"). It now describes the rule asbareBridgesdoes: commented spans are dropped from each line, on one line or across several, and whatever follows a*/on the same line is still checked.Test
P4
*rule could widen back unnoticed, and the header would keep describing a rule the code no longer follows.Net LOC
From
git diff --numstatagainst masterad126b48: +5 / −3 inscripts/frontend-product-name.test.mjs. All test code. The file is not pinned, so there is no ack.Mutants
trimmed.startsWith("* ")back totrimmed.startsWith("*")text after a comment closes is checked, and text inside one is not(the new*Bridgecase): 1 passed, 1 failedNot measured
Needs a lab run: none
This changes a test file only.
Migration, security and rollback
Review checklist
review-checklist.md line 10: Errors are actionable without exposing sensitive values.
🤖 Generated with Claude Code