Skip to content

make coderabbit to read claude rules#2499

Merged
tharindu1st merged 1 commit into
wso2:mainfrom
tharindu1st:code-rabbit-yaml
Jul 7, 2026
Merged

make coderabbit to read claude rules#2499
tharindu1st merged 1 commit into
wso2:mainfrom
tharindu1st:code-rabbit-yaml

Conversation

@tharindu1st

Copy link
Copy Markdown
Contributor

make coderabbit to read claude rules

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Ignoring CodeRabbit configuration file changes. For security, only the configuration from the base branch is applied for open source repositories.

📝 Walkthrough

Walkthrough

This change adds a knowledge_base section to .coderabbit.yaml, configuring code_guidelines with a filePatterns glob that targets **/.claude/rules/* for guideline file sourcing.

Changes

Config Update

Layer / File(s) Summary
Add knowledge_base code_guidelines config
.coderabbit.yaml
Adds a knowledge_basecode_guidelines section with a filePatterns glob for **/.claude/rules/*.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is only a repeated one-line intent and misses the required template sections and details. Expand the PR description to fill the required sections: Purpose, Goals, Approach, User stories, Documentation, tests, security, samples, related PRs, and test environment.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the main change: updating CodeRabbit to read Claude rules from the config.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
.coderabbit.yaml (1)

17-20: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Pattern won't match nested rule files.

**/.claude/rules/* only matches files directly inside .claude/rules/; a single * doesn't cross directory boundaries. If any rules are organized into subdirectories (a common convention for larger rule sets), they'll silently be excluded from guideline detection. Consider **/.claude/rules/** to also catch nested files, unless the directory is confirmed to always be flat.

♻️ Suggested fix
 knowledge_base:
   code_guidelines:
     filePatterns:
-      - "**/.claude/rules/*"
+      - "**/.claude/rules/**"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.coderabbit.yaml around lines 17 - 20, The filePatterns entry for
knowledge_base.code_guidelines is too narrow and only matches files directly
under .claude/rules, so nested rule files are missed. Update the pattern in the
configuration to use a recursive match in the filePatterns setting so the
guideline detection includes files in subdirectories as well, and keep the
change localized to the knowledge_base.code_guidelines block.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In @.coderabbit.yaml:
- Around line 17-20: The filePatterns entry for knowledge_base.code_guidelines
is too narrow and only matches files directly under .claude/rules, so nested
rule files are missed. Update the pattern in the configuration to use a
recursive match in the filePatterns setting so the guideline detection includes
files in subdirectories as well, and keep the change localized to the
knowledge_base.code_guidelines block.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4fc6e4b8-4db9-4219-a9f8-7c9ab6de6c3b

📥 Commits

Reviewing files that changed from the base of the PR and between 42db784 and 567e71f.

📒 Files selected for processing (1)
  • .coderabbit.yaml

@tharindu1st
tharindu1st merged commit 437a74d into wso2:main Jul 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants