Repository navigation
unname_everywhere docstring: only the carriage return is optional, the newline is required (#66) - #67
Conversation
…e newline is required (#66) Copilot's suppressed comment on PR #65, read after the merge: the docstring said the line ending is "OPTIONAL (\r?\n)", which implies the entry line might carry no newline at all. It cannot: \r?\n makes only the carriage return optional, and the entry is matched as a whole line. Reworded to say so and to keep the reason the \r is optional - a core.autocrlf=true checkout has CRLF throughout until it is renormalised. No code changes. Lane: xfactory-2 (xFactory-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 9 hours and 57 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis documentation-only change corrects the File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
There was a problem hiding this comment.
🟢 Approval recommended
The change is a precise docstring correction that matches the existing regex behavior and does not alter executable code.
Pull request overview
This pull request updates the unname_everywhere() docstring in tests/test_update_shape_add.py to correctly describe the regex line-ending behavior: \r?\n makes only the carriage return optional, while the newline remains required to match and remove an entry as a whole line. This aligns the documentation with the existing regex and CRLF-focused test behavior, without changing any executable logic.
Changes:
- Reword the
unname_everywhere()docstring to clarify that\ris optional but\nis required. - Preserve the existing regex and CRLF test expectations while making the docstring precise about whole-line matching.
File summaries
| File | Description |
|---|---|
| tests/test_update_shape_add.py | Clarifies the unname_everywhere() docstring to accurately describe required newline vs optional carriage return in \r?\n. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.



Lane: xfactory-2 (xFactory-2)
Claim: #66 (claim in the issue body, 2026-09-06T03:51Z, on Brett Heap's "pick up 16 and merge on green too")
Closes #66.
Copilot's one suppressed comment on PR #65 (#63), read after the merge: the docstring of
tests/test_update_shape_add.py::unname_everywhere()said the line ending is "OPTIONAL (\r?\n)".\r?\nmakes only the carriage return optional — the newline is still required, and the entry is still matched as a whole line — so the sentence implied something the pattern does not accept.One docstring passage reworded: only the
\ris optional, so the whole-line match finds the entry in LF and CRLF sources alike; the newline is required. The regex, the CRLF test beside it and the behaviour are exactly as #65 left them. Nothing executable changes; README.md and AGENTS.md untouched.Summary by Sourcery
Enhancements:
unname_everywheredocstring to accurately describe the regex’s required newline and optional carriage return while documenting support for LF and CRLF sources.