Repository navigation
fix: line up multi-line values in the listing and say "1 check" - #360
Conversation
The declaration boxes CC501 reports are a list. The second box sat at the column of "value:" and read as a line of its own, so list continuation lines now align under the first item. A commit body in the value stays flush, as before. The folded listing's title said "All 1 check" for a single check; it now says "1 check".
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 50 minutes. View limit details
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. |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #360 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 1281 1280 -1
=========================================
- Hits 1281 1280 -1
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:
|
Align every multi-line value, not only lists, so a commit body reads as one block and the rule's error after it is not taken for part of the message. Blank lines stay empty.
A blank line inside a value or a fix (the gap before a body or a Signed-off-by trailer) carried eight trailing spaces.
Two small fixes to the listing in the step log and the folded "All checks" block. All output below comes from the real CLI.
1. Multi-line values line up under their first line
Every line of a multi-line value used to sit at the same column as
value:and the rule's error. A reader could not tell where the user's text ended and the CLI's explanation began. Continuation lines now align under the first line, so the value reads as one block.Commit body. Before: the third sentence is the CLI's error, but it looks like part of the message.
After:
CC501 declaration boxes. Before: the second box reads as a separate line.
After:
Blank lines in the listing are now empty. They used to carry 8 trailing spaces, for example the gap before a
Signed-off-by:trailer inFix:.Suggest:andFix:continuation lines are otherwise unchanged.2. Folded title for a single check
All 1 check1 checkAll 6 checksAll 6 checks(unchanged)Tests
Two new tests: a list value is aligned, and a commit body is aligned with its blank line left empty. The
All 1 checkassertions and the multi-lineFix:blank-line assertion were updated. 414 tests pass, coverage stays at 100%, and pre-commit is clean.