Skip to content

fix: line up multi-line values in the listing and say "1 check" - #360

Merged
shenxianpeng merged 4 commits into
mainfrom
fix/listing-checkbox-values
Nov 23, 2026
Merged

shenxianpeng merged 4 commits into
mainfrom
fix/listing-checkbox-values

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

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.

  ✖ 1/1          added login page
      CC001 message
        value: added login page

        Users can now sign in with email and password.
        The old token flow is removed.
        The commit message should follow Conventional Commits. See https://www.conventionalcommits.org
        Suggest: Use <type>(<scope>): <description>, ...

After:

  ✖ 1/1          added login page
      CC001 message
        value: added login page

               Users can now sign in with email and password.
               The old token flow is removed.
        The commit message should follow Conventional Commits. See https://www.conventionalcommits.org
        Suggest: Use <type>(<scope>): <description>, ...

CC501 declaration boxes. Before: the second box reads as a separate line.

      CC501 ai-declaration
        value: - [ ] No AI tools were used
        - [ ] AI tools were used
        No AI declaration box is ticked

After:

      CC501 ai-declaration
        value: - [ ] No AI tools were used
               - [ ] AI tools were used
        No AI declaration box is ticked

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 in Fix:. Suggest: and Fix: continuation lines are otherwise unchanged.

2. Folded title for a single check

Checks Before After
1 All 1 check 1 check
2+ All 6 checks All 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 check assertions and the multi-line Fix: blank-line assertion were updated. 414 tests pass, coverage stays at 100%, and pre-commit is clean.

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".
@shenxianpeng
shenxianpeng requested a review from a team as a code owner November 23, 2026 20:34
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 51139829-015a-4ad9-9dcf-6a9d5fbb4bd2
Commits

Reviewing files that changed from the base of the PR and between 496e6dc and bd89efb.

Files selected for processing: 3

  • action/render.py
  • tests/log_test.py
  • tests/report_test.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@shenxianpeng shenxianpeng self-assigned this Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

✔ Commit Check passed

✔ Pull request: 2 passed
✔ Commits: 4 passed
✔ Author: 2 passed
✔ Branch: passed

All 9 checks
Pull request
  ✔ title        fix: line up multi-line values in the listing and say "1 check"
  ✔ description  no AI attribution
Commits
  ✔ 7c0515f      fix: line up list values in the listing and say "1 check"
  ✔ df2f06f      fix: line up a commit body under its subject too
  ✔ be6f48f      fix: leave blank lines in the listing empty
  ✔ bd89efb      style: format render.py
Author
  ✔ name         Xianpeng Shen
  ✔ email        3353385+shenxianpeng@users.noreply.github.com
Branch
  ✔ branch       fix/listing-checkbox-values

Checked by Commit Check 2.24.1 · Rules · Check before you push

@github-actions github-actions Bot added the ai-assisted Written with the help of an AI tool label Nov 23, 2026
@shenxianpeng shenxianpeng removed the ai-assisted Written with the help of an AI tool label Nov 23, 2026 — with Claude
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (496e6dc) to head (bd89efb).
⚠️ Report is 2 commits behind head on main.

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     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.
@shenxianpeng shenxianpeng changed the title fix: line up list values in the listing and say "1 check" fix: line up multi-line values in the listing and say "1 check" Nov 23, 2026
@shenxianpeng shenxianpeng added the bug Something isn't working label Nov 23, 2026
@shenxianpeng
shenxianpeng merged commit b42dca6 into main Nov 23, 2026
18 of 21 checks passed
@shenxianpeng
shenxianpeng deleted the fix/listing-checkbox-values branch November 23, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant