Repository navigation
ios-fleet: test a glued # and a # inside quotes against the prelude comment start (AFC-517) - #324
Conversation
…de quotes against the raw-line comment start (Kody, AFC-517)
This comment has been minimized.
This comment has been minimized.
|
PR description uses double ASCII spaces instead of NBSP sentence gaps The double ASCII spaces collapse in rendered Markdown, making sentence gaps inconsistent. Replace each affected Kody rule violation: Sentence gap by surface: two ASCII spaces in files, U+00A0 plus a space in rendered copy and GitHub text Prompt for LLM |
|
Task description is insufficient for business logic validation. 🤔 Insufficient Task ContextI found a task linked to this PR, but it only contains minimal information (title only, no description or acceptance criteria). To perform a meaningful business rules validation, I need more details. 🔍 What I need to validate:
💡 How to improve the task context:
|
…t structural (Kody, AFC-517)
|
Restored the PR description: Kody's generated summary had replaced it, which dropped the references to #319 and Kody thread r4371224986. Every sentence gap in it now uses U+00A0 plus a space, and the 62723e5 follow-up is noted. On the business-logic note: this PR is test-only regression coverage for that thread, so the linked AFC-517 ticket's scope is set by #319 and the thread itself. |
|
@kody start-review |
This comment has been minimized.
This comment has been minimized.
|
New source comment has a one-space sentence boundary Revises an earlier Kody suggestion on This plain-text source comment fails the required two-space sentence boundary. Add a second ASCII space after Kody rule violation: Sentence gap by surface: two ASCII spaces in files, U+00A0 plus a space in rendered copy and GitHub text Prompt for LLM |
The positive-control comment added for the quoted-brace case ends its section label with a single space, which the two-space file sentence rule flags. Fix the one space so the new lines in this branch are rule-clean. Refs AFC-517. Copy-rule fix by BF-DEPLOYER so the branch can land.
This comment has been minimized.
This comment has been minimized.
…le bit Jay ruled that code comments are exempt from the sentence-spacing rule, so the 12a-quint label keeps the single space its neighbouring section headers use. b2ce410 also dropped the executable bit (100755 to 100644); this restores it.
|
@kody Per Jay, the sentence-spacing rule doesn't apply inside code, including source comments, so this one is exempt. The |
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀
|
| Options | Enabled |
|---|---|
| Bug | ✅ |
| Performance | ✅ |
| Security | ✅ |
| Business Logic | ✅ |
ios-fleet: test glued and quoted
#against prelude comment detectionSummary
scripts/ios-fleet/test-asc-credentials.shwith two cases:#immediately following a closing quote.#inside a quoted string.}remains structural and closes the prelude body, causing a following indented command to be rejected with the expected positional-argument error rather than included in or executed as part of the prelude.Summary
}inside a quoted string is treated as string content rather than a structural shell brace.Testing
Updated
scripts/ios-fleet/test-asc-credentials.shwith a synthetic quoted-brace prelude case that fails ifextract_ship_preluderefuses the prelude.Updated the
12a-quintsection comment inscripts/ios-fleet/test-asc-credentials.shto match the surrounding formatting. The comment documents the positive-control case for a valid prelude containing a brace inside a quoted string. This is a comment-only change; prelude parsing, credential extraction, and test behavior are unchanged.Normalizes the
12a-quinttest comment inscripts/ios-fleet/test-asc-credentials.shby removing extra spacing after the section label. This is a comment-only cleanup and does not change prelude parsing or test behavior.Follow-up to #319 for Kody thread r4371224986. This commit was pushed to the #319 branch just after that PR merged, so it never reached main. It is test-only and changes just
scripts/ios-fleet/test-asc-credentials.sh.gluedarg(true "x"# }) is the review's own shape. A#glued to a closing quote isn't a comment start, so the}still counts, and the indented command after it must be refused as positional.quotedhash(true " #";}): a#inside quotes isn't a comment start either, so the}closes the body and the indented command after it must be refused.Proof. Each case was checked by breaking the rule on purpose and restoring it afterwards. Counting comments on the stripped line instead of the position-preserving mask fails the suite on
gluedargwhen it runs alone, and finding the comment start on the raw line fails it onquotedhash.test-asc-credentials.shand the full iOS ship contract set pass locally (163/163 node tests plus the shell suites), with synthetic content only and no credentials.Follow-up in 62723e5. Section 12a-quint adds a positive control for Kody's quoted-brace finding: a valid prelude whose body holds
echo "a } b"has to be accepted. Counting braces on the raw line instead of the quote-masked line fails the suite, which proves the check works.