Repository navigation
refactor: drop CC504 required sections before release - #752
Conversation
CC504 (`[pull_request] required_sections`) has not shipped, so it goes before the next release. CC503 `description_min_length` stays, with what it counts unchanged: headings, task lists, rules and empty bullets are not the author's words. Tests that checked those through CC504 now check them through CC503.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #752 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 3835 3773 -62
Branches 775 761 -14
=========================================
- Hits 3835 3773 -62 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will not alter performance1 warning
Comparing Footnotes
|



What
Drops CC504 (
[pull_request] required_sections) before it ships. CC503 ([pull_request] description_min_length) stays as merged.Before / after
Before, with
required_sections = ["Summary"]incchk.toml,--pr-bodyran CC504 and failed a description whose "Summary" section was empty.After,
required_sectionsis an unknown[pull_request]key: commit-check warns about it and runs no CC504. CC503 runs as before.Changes
required_sections, the config key, and its README rows.ai_declaration_checkboxesparsing is back to its own function (the shared list parser existed only for CC504).#and underlined), task lists, rules (---) and empty bullets are still not the author's words, and--pr-bodystill reads the description unstripped.Checks
ruff, mypy, and the full test suite pass with 100% coverage. The one failure,
test_load_config_file_permission_error, also fails on main when the tests run as root.Generated by Claude Code
Summary by CodeRabbit