CodeRabbit
Supercharge your entire team with AI-driven contextual feedback & smart chat
| Type | schema |
|---|---|
| File match |
.coderabbit.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/coderabbit/latest.json |
| Source | https://coderabbit.ai/integrations/schema.v2.json |
Validate with Lintel
npx @lintel/lintel check
Definitions
Set the language for reviews by using the corresponding ISO language code.
Set the tone of reviews and chat. Example: 'You must talk like Mr. T. I pity the fool who doesn't!'
Enable early-access features.
Enable free tier features for users not on a paid plan.
Inheritance | Use parent settings for any values not defined here. Inheritance only propagates upward if enabled at each level.
Settings related to reviews.
{}
36 nested properties
Set the review profile: chill for lighter feedback, assertive for more feedback (which may feel nitpicky).
Automatically approve once CodeRabbit’s comments are resolved and no pre-merge checks are failing. Note: In GitLab, all discussions must be resolved.
Generate a high-level summary of the changes in the PR description or walkthrough.
By default, CodeRabbit generates release notes in the description. Use this to customize the summary content and format. Example: 'Create concise release notes as a bullet-point list, followed by a Markdown table showing lines added and removed by each contributing author.' Note: Use high_level_summary_in_walkthrough to place the summary in the walkthrough instead of the description.
Placeholder in the PR description that CodeRabbit replaces with the high-level summary. If high_level_summary is false, the summary is still generated when this placeholder is present.
Include the high-level summary in the walkthrough comment.
Add this keyword to the PR title to auto-generate a title.
Auto Title Instructions | Customize how CodeRabbit generates the PR title.
Post review status messages (e.g., when a review is skipped) in the walkthrough summary comment.
Post review details (ignored files, extra context used, suppressed comments, etc.).
Set the commit status to 'pending' when the review is in progress and 'success' when it is complete.
Set the commit status to 'failure' when the PR cannot be reviewed by CodeRabbit for any reason.
Wrap the walkthrough in a Markdown collapsible section.
Include a summary of the changed files in the walkthrough.
Include sequence diagrams in the walkthrough.
Include an estimated code review effort in the walkthrough.
Include an assessment of how well the changes address linked issues in the walkthrough.
Include potentially related issues in the walkthrough.
Related PRs | Include potentially related PRs in the walkthrough.
Suggest labels based on the changes, and include them in the walkthrough.
Labeling Instructions | Define allowed labels and when to suggest them. When provided, CodeRabbit suggests only from this list (still informed by prior PRs); when empty, suggestions rely entirely on prior PRs.
[]
Automatically apply suggested labels to the PR.
Suggest reviewers based on the changes, and include them in the walkthrough.
Automatically assign the suggested reviewers to the PR.
Post a fortune message while the review is running.
Generate a poem in the walkthrough comment.
Prompt for AI Agents | Include the 'đŸ¤– Prompt for AI Agents' section in inline review comments to provide codegen instructions for AI agents.
Specify file patterns to include or exclude in a review using glob patterns (e.g., !dist/**, src/**). These patterns also apply to 'git sparse-checkout', including specified patterns and ignoring excluded ones (starting with '!') when cloning the repository.
[]
Path Instructions | Add path-specific guidance for code review.
[]
Abort the in-progress review if the PR is closed or merged.
Disable caching of code and dependencies; fetch them fresh on each run.
Anti-Slop | Settings for detecting and managing spam or low-quality PRs. Only for public repos, only for GitHub as of now.
{}
2 nested properties
Enable or disable slop and low-quality PR detection.
Label to apply to the PR when it is classified as slop. Example: slop
{}
9 nested properties
Automatic Review | Review PRs automatically.
Keyword in the PR description that triggers a review when automatic reviews are disabled. If enabled is false and this field is not empty, CodeRabbit reviews the PR only when this keyword is present in the description.
Incremental Review | Re-run the review on each push.
Auto Pause After Reviewed Commits | Pause automatic reviews after this many reviewed commits since the last pause. Set to 0 to disable.
Skip reviews when the PR title contains any of these keywords (case-insensitive).
[]
Labels that control which PRs are reviewed. Labels starting with '!' are negative matches. Examples: ['bug', 'feature'] reviews PRs with either label. ['!wip'] reviews all PRs except those labeled 'wip'. ['bug', '!wip'] reviews PRs labeled 'bug' but not 'wip'. This setting also triggers a review when enabled is false.
[]
Include draft PRs.
Base branches (other than the default branch) to review. Accepts regex patterns. Use '.*' to match all branches.
[]
Skip reviews for PRs authored by these usernames (exact match; not email addresses).
[]
{}
4 nested properties
Docstrings | Configure docstring generation.
{}
Unit Tests | Configure unit test generation.
{}
Simplify | Configure code simplification.
{}
Custom Recipes | Define up to 5 custom finishing touch recipes. Trigger a recipe with @coderabbitai run <recipe name>.
[]
{}
6 nested properties
Override Requested Reviewers Only | When enabled, only requested reviewers (and not the pull request author) can override/ignore failing pre-merge checks.
Docstring Coverage | Check that docstring coverage meets the configured threshold.
{}
Title Check | Validate the PR title against the requirements.
{}
Description Check | Check that the PR description follows best practices.
{}
Linked Issue Assessment | Assess how well the PR addresses linked issues.
{}
Custom Pre-merge Checks | Define up to 5 custom checks that must pass before merging. Each check needs a unique name (≤50 chars) and deterministic instructions (≤10,000 chars).
[]
Tools that provide additional context to code reviews.
{}
50 nested properties
Enable ast-grep | ast-grep is a code analysis tool that helps you to find patterns in your codebase using abstract syntax trees patterns. | v0.42.1
{}
ShellCheck is a static analysis tool that finds bugs in your shell scripts.
{}
Ruff is a Python linter and code formatter.
{}
markdownlint-cli2 is a static analysis tool to enforce standards and consistency for Markdown files.
{}
GitHub Checks integration configuration.
{}
LanguageTool is a style and grammar checker for 30+ languages.
{}
Biome is a fast formatter, linter, and analyzer for web projects.
{}
Hadolint is a Dockerfile linter.
{}
SwiftLint integration configuration object.
{}
PHPStan is a tool to analyze PHP code.
{}
PHPMD is a tool to find potential problems in PHP code.
{}
PHP CodeSniffer is a PHP linter and coding standard checker.
{}
golangci-lint is a fast linters runner for Go.
{}
YAMLlint is a linter for YAML files.
{}
Betterleaks is a secret scanner (an improved version of Gitleaks).
{}
TruffleHog is a secret scanner with verification capabilities that can detect and verify secrets in code.
{}
Checkov is a static code analysis tool for infrastructure-as-code files.
{}
TFLint is a Terraform linter for finding potential errors and enforcing best practices.
{}
Detekt is a static code analysis tool for Kotlin files.
{}
ESLint is a static code analysis tool for JavaScript files.
{}
Flake8 is a Python linter that wraps PyFlakes, pycodestyle and Ned Batchelder's McCabe script.
{}
Fortitude is a Fortran linter that checks for code quality and style issues.
{}
RuboCop is a Ruby static code analyzer (a.k.a. linter ) and code formatter.
{}
Buf offers linting for Protobuf files.
{}
Regal is a linter and language server for Rego.
{}
actionlint is a static checker for GitHub Actions workflow files.
{}
PMD is an extensible multilanguage static code analyzer. It’s mainly concerned with Java.
{}
Configuration for Clang to perform static analysis on C and C++ code
{}
Cppcheck is a static code analysis tool for the C and C++ programming languages.
{}
OpenGrep is a high-performance static code analysis engine, compatible with Semgrep configurations.
{}
Semgrep is a static analysis tool designed to scan code for security vulnerabilities and code quality issues.
{}
CircleCI tool is a static checker for CircleCI config files.
{}
Clippy is a collection of lints to catch common mistakes and improve your Rust code.
{}
SQLFluff is an open source, dialect-flexible and configurable SQL linter.
{}
Trivy is a comprehensive security scanner that detects misconfigurations and secrets in Infrastructure as Code files
{}
Configuration for Prisma Schema linting to ensure schema file quality
{}
Pylint is a Python static code analysis tool.
{}
Oxlint is a JavaScript/TypeScript linter for OXC written in Rust.
{}
Configuration for Shopify Theme Check to ensure theme quality and best practices
{}
Configuration for Lua code linting to ensure code quality
{}
Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications. | v8.0.3
{}
dotenv-linter is a tool for checking and fixing .env files for problems and best practices
{}
HTMLHint is a static code analysis tool for HTML files.
{}
Stylelint is a linter for stylesheets (CSS, SCSS, Sass, Less, SugarSS, Stylus) that helps avoid errors and enforce conventions.
{}
checkmake is a linter for Makefiles.
{}
OSV Scanner is a tool for vulnerability package scanning.
{}
Blinter is a linter for Windows batch files that provides comprehensive static analysis to identify syntax errors, security vulnerabilities, performance issues, and style problems.
{}
smarty-lint is a linter for Smarty 3 template files that checks for common issues such as incorrect operator usage, naming conventions, empty blocks, and unquoted strings.
{}
ember-template-lint is a linter for Handlebars template files that checks for common issues such as accessibility violations, deprecated patterns, and template anti-patterns.
{}
PSScriptAnalyzer is a static code checker for PowerShell scripts and modules.
{}
{}
4 nested properties
Generate art in chat responses (ASCII or emoji).
Allow non-organization members to interact with CodeRabbit in comment chat. Set to false to restrict issue/review comment interactions to organization members on GitHub organization repositories. This does not affect automatic PR review eligibility.
Let CodeRabbit reply automatically without requiring a mention/tag.
{}
2 nested properties
{}
{}
{}
10 nested properties
Opt Out | Disable knowledge base features that require data retention. Opting out removes any existing stored knowledge base data.
{}
1 nested properties
Web Search | Use web search to gather additional context.
Use your coding guideline documents (see File Patterns) as review criteria.
{}
2 nested properties
Enabled | Apply your organization's coding standards during reviews.
File Patterns | Patterns for your coding guideline documents. CodeRabbit scans these files to learn your standards and apply them during reviews. Multiple files supported; file names are case-sensitive. Defaults include: (**/.cursorrules, .github/copilot-instructions.md, .github/instructions/.instructions.md, **/CLAUDE.md, **/GEMINI.md, **/.cursor/rules/, **/.windsurfrules, **/.clinerules/, **/.rules/, **/AGENT.md, **/AGENTS.md).
[]
{}
1 nested properties
Learnings | Choose scope: 'local' (repo), 'global' (org), or 'auto' (local for public repos, global for private repos).
{}
1 nested properties
Issues | Choose scope for GitHub/GitLab issues: 'local' (repo), 'global' (org), or 'auto' (local for public repos, global for private repos).
{}
2 nested properties
Jira | Use Jira as a knowledge source. 'auto' disables the integration for public repositories.
Jira Project Keys | Restrict Jira context to these projects.
[]
{}
2 nested properties
Linear | Use Linear as a knowledge source. 'auto' disables the integration for public repositories.
Linear Team Keys | Restrict Linear context to these teams (e.g. 'ENG').
[]
{}
1 nested properties
PRs | Choose scope: 'local' (repo), 'global' (org), or 'auto' (local for public repos, global for private repos).
{}
2 nested properties
MCP | Use MCP servers as a knowledge source. 'auto' disables the integration for public repositories.
Disabled MCP Servers | Specify MCP server labels to disable (case-insensitive). These servers will be excluded from reviews and knowledge base queries.
[]
Linked Repositories | Repositories that CodeRabbit should consider when reviewing PRs in this repo. Use this to surface cross-repo dependencies and catch breaking changes across related codebases.
[]
{}
2 nested properties
Docstring Generation | Settings for generating docstrings.
{
"path_instructions": []
}
2 nested properties
Language for generated docstrings (ISO language code).
Path Instructions | Add path-specific guidelines for docstring generation.
[]
Unit Test Generation | Settings for generating unit tests.
{
"path_instructions": []
}
1 nested properties
Path Instructions | Add path-specific guidelines for unit test generation.
[]
{}
3 nested properties
Settings for automatic issue enrichment.
{}
1 nested properties
Automatic Issue Enrichment | Analyze and enrich issues with additional context (related code, potential solutions, complexity assessment).
Settings for issue planning.
{}
2 nested properties
Issue Planning | Generate an implementation plan for issues (early preview).
{}
Settings for issue labeling.
{}
2 nested properties
Labeling Instructions | Define issue labels to suggest and when to suggest them.
[]
Automatically apply suggested labels to the issue. When enabled without labeling instructions, labels are auto-suggested based on similar issues.