GeezerVison is showing github.com — fix: name the trailer in the CC014 advice when the message has no blank line by shenxianpeng · Pull Request #696 · commit-check/commit-check
Conversation
shenxianpeng
commented
Nov 12, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Before: With ai_attribution = "disclose", a commit message with no blank line in it (a single line, or a subject followed directly by the tool's mark) failed CC014 with empty advice.
$ echo 'feat: add login page 🤖 Generated with Claude Code' | commit-check --message
✖ CC014 ai-disclosure failed: 🤖 Generated with Claude
AI assistance is not disclosed with Assisted-by or Generated-by — detected: Claude Code
Suggest: Disclose the tool with ""
Docs: https://commit-check.com/rules/#cc014
After: The advice names the trailer to add.
✖ CC014 ai-disclosure failed: 🤖 Generated with Claude
AI assistance is not disclosed with Assisted-by or Generated-by — detected: Claude Code
Suggest: Disclose the tool with "Assisted-by: Claude Code"
Docs: https://commit-check.com/rules/#cc014
A message that already has a blank line was not affected and prints the same advice as before.
How: The proposed fix puts a blank line before the trailer it adds. When the message had no blank line of its own, that blank line was the first new line, and the advice quoted it. _added_lines now leaves blank lines out. One parametrized test covers both message shapes; it fails on main and passes here.
Summary by CodeRabbit
- Bug Fixes
- Blank lines are no longer counted as added content when comparing changes.
- AI-disclosure advice now handles tool stamps on the commit subject line or immediately after it, and provides a corrected trailer suggestion.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…nk line
The proposed fix puts a blank line before the trailer it adds. For a
message with no blank line of its own, that blank line was the first
added line, so the advice read: Disclose the tool with "".
coderabbitai
Bot
commented
Nov 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The added-line comparison now omits blank lines. A parameterized test checks that disclosure validation fails and offers the expected fix and suggestion for two Claude Code stamp placements.
Changes: Added-line filtering and disclosure
| Layer / File(s) |
Summary |
Filter added lines and verify disclosure commit_check/engine.py, tests/engine_fixes_test.py |
_added_lines excludes whitespace-only lines. A parameterized test checks disclosure failure, the inserted blank line, and the suggestion for two stamp placements. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested labels: bug
Merge Risk: Minimal · up to c1b62
-
This fixes empty CC014 advice when a commit message has no blank line, and a regression test covers the fix. No merge-blocking risk was found.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: the CC014 advice now names the trailer to add when the commit message has no blank line. The raw summary describes the engine change that drops blank lines from _added… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
| Description Check |
 |
Check skipped - CodeRabbit’s high-level summary is enabled. |
Full details: Title check
-
Explanation
The title names the main change: the CC014 advice now names the trailer to add when the commit message has no blank line. The raw summary describes the engine change that drops blank lines from _added_lines, and the added test covers the no-blank-line case, so the title matches the changeset.
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- 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
-
Recent review info
-
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:
15846382-714d-4d82-b9c3-9389c55d149c
Commits
-
Reviewing files that changed from the base of the PR and between 0659e65 and c1b6273.
Files selected for processing: 2
-
commit_check/engine.py
tests/engine_fixes_test.py
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0659e65) to head (c1b6273).
Additional details and impacted files
@@ Coverage Diff @@
## main #696 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 15 15
Lines 2600 2600
Branches 508 508
=========================================
Hits 2600 2600
☔ 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
codspeed
Bot
commented
Nov 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Merging this PR will degrade performance by 24.32%
2 warnings
⚠️ 134 benchmarks are dominated by system calls
System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.
Learn more about system calls
See affected benchmarks
⚠️ 1 benchmark with a significant change ran on different hardware
Its base and head results were measured on machines with a different CPU, core count or memory, so the change might not come from the code. Run base and head on the same runner type.
Learn more about Macro Runners
See affected benchmarks
❌ 1 regressed benchmark
✅ 684 untouched benchmarks
⏩ 131 skipped benchmarks1
Performance Changes
Tip Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing fix/cc014-empty-suggestion (c1b6273) with main (c5904d6)2
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
bug
Something isn't working
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|