Conversation
Custom rules (--custom-rules) allowed adding new analysis rules via JSON. This is removed in favor of maintaining a complete built-in rule set. Config overrides (--config) for adjusting scores/severity/thresholds are kept. - Delete src/core/rules/custom/ (loader, schema, index) - Delete examples/custom-rules.json - Move config-loader.ts out of custom/ to rules/ - Remove --custom-rules from CLI, MCP, docs - Update CLAUDE.md, README.md, REFERENCE.md Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (15)
💤 Files with no reviewable changes (8)
📝 WalkthroughWalkthroughThis PR completely removes custom rules functionality from the codebase. It deletes the custom rule loader, schema definitions, and test suite; removes the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
--custom-rules) entirely--config) for adjusting scores, severity, and thresholdsWhy
Built-in rules should be complete and well-calibrated. Custom rules added complexity (loader, schema, diversity denominator issues) without clear value — if a check is worth having, it should be a built-in rule maintained by the project.
This also resolves the diversity scoring issue flagged in #111 where custom rules weren't included in
TOTAL_SCORE_PER_CATEGORY.What's removed
src/core/rules/custom/directory (loader, schema, index) — -1,465 linesexamples/custom-rules.json--custom-rulesoption from CLI, MCP server, docsdocs/REFERENCE.mdcanicode docs rulesWhat's kept
--configoption for rule score/severity/threshold overridesconfig-loader.tsmoved fromcustom/torules/(cleaner location)Test plan
--configstill works (config-loader moved, not deleted)🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
--custom-rulesCLI option from analyze and list-rules commands.--configexclusively for rule customization.