Repository navigation
Read the Remaining Layouts the Sentence-Length Check Misread - #2863
Conversation
Measure a docstring body from its own margin, keep a non-prose line inside a comment command run, give block comment continuations an indent, read Google free-text sections as prose, tell a NumPy head from prose by its layout, and read a bare comment marker line as a gap outside Python. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Anchor a bare continuation to the opener column, stop a NumPy head lookahead at a blank line, and let a closing quote count toward the docstring margin only at or past the quote column. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Measure the first docstring line against the smaller of the quote column and the body margin, and cut a block comment continuation only at whitespace. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2863 +/- ##
===========================================
- Coverage 60.49% 59.94% -0.56%
===========================================
Files 16 16
Lines 8534 8624 +90
===========================================
+ Hits 5163 5170 +7
- Misses 3371 3454 +83
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
Two moderate findings remain for aligned docstring closers and the Deprecated Google section.
1 open finding
What changed in this PR
This pull request improves sentence-length parsing for docstrings and comments, with regression coverage for remaining layouts.
Changes:
- Handles deeper docstrings, Google/NumPy sections, and comment indentation.
- Supports non-Python marker gaps.
- Adds focused regression tests.
| File | Summary |
|---|---|
.github/actions/prose-gate/prose_lint.py |
Updates prose extraction and layout classification. |
tests/test_prose_lint.py |
Adds regression coverage for supported layouts. |
🧠 Review effort: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…argin Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…urrency Audit to Main (#2866) ## Summary Promotes [#2857](#2857), [#2860](#2860), [#2858](#2858), [#2859](#2859), and [#2863](#2863) to main. - Over-cap config comments are split and the scenario table gains S14. - The narrowed-scan diff-floor test no longer depends on the working directory. - The EditorConfig lint task image comes from the registry CI uses. - The audit flags a publisher or merge-bot concurrency group that drifts from WORKFLOW.md. - `prose_lint.py`'s opt-in `sentence-length` check reads the remaining layouts it misread. Closes #2845 Closes #2830 Closes #2844 Closes #2856 Closes #2843 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Fixes #2843.
Fixes the layouts the sentence-length check still misread: a docstring body deeper than its quotes, a non-prose line inside an indented comment run,
/* */continuation indents, Google free-text sections (Note, Warning, See Also, Todo and the rest), the NumPy head versus prose test, and a bare comment marker gap outside Python.Item 6 (the bare marker gap) needed a code change: non-Python files did not treat a bare marker line after a colon line as a gap.
Leftovers accepted and are listed in #2865.
🤖 Generated with Claude Code