Skip to content

Commit c36001e

Browse files
Merge branch 'main' into readme
2 parents 379987b + 96dc292 commit c36001e

27 files changed

+793
-82
lines changed

docs/changelog.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ description: The latest updates and changes to CodeRabbit.
55
sidebar_position: 13
66
---
77

8+
### May 30, 2025
9+
10+
#### New Static Analysis Tool
11+
12+
We're excited to announce that [Pylint](https://github.com/PyCQA/pylint) is now supported on CodeRabbit!
13+
14+
- **Pylint**: A widely used static analysis and code quality tool for Python. It checks for errors, enforces a coding standard, and looks for code smells in your Python codebase by analyzing Python files.
15+
16+
## May 25, 2025
17+
18+
### New Security and Code Quality Tools
19+
20+
We're excited to announce the addition of two powerful tools to our static analysis arsenal:
21+
22+
- **Brakeman**: A static analysis security vulnerability scanner for Ruby on Rails applications. It helps identify security issues in your Ruby codebase by analyzing Gemfile, Ruby files (_.rb), and ERB templates (_.erb).
23+
24+
- **Clippy**: The official linter for Rust code, helping catch common mistakes and improve your Rust code quality. It analyzes \*.rs files and supports configuration through clippy.toml files.
25+
26+
Both tools can be configured through their respective config files or through CodeRabbit's settings page. See our [tools documentation](https://docs.coderabbit.ai/tools/) for more details.
27+
828
## May 19, 2025
929

1030
### Lua Support with Luacheck

docs/faq.md

Lines changed: 85 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,42 @@ import TabItem from '@theme/TabItem';
1010

1111
## General Questions {#general-questions}
1212

13+
### How to trigger a CodeRabbit Review?
14+
15+
Once installed, CodeRabbit automatically triggers a review when a pull request is opened against the main branch of any repository. We automatically detect the name of the primary branch (whether this be master, main, dev, etc). This branch restriction can be customized in your settings.
16+
17+
You can also manually trigger a review at any time by commenting on a pull request with one of these commands (see [Commands](/guides/commands.md) for full list):
18+
19+
- `@coderabbitai review` - Triggers a standard review
20+
- `@coderabbitai full review` - Triggers a comprehensive review
21+
22+
### How to run a review from my IDE?
23+
24+
You can trigger CodeRabbit reviews directly from your IDE using our editor plugins:
25+
26+
- [VSCode Extension](./guides/about-vscode.md) - For VSCode, Cursor or Windsurf users
27+
28+
These plugins allow you to request reviews without leaving your development environment. See the individual plugin documentation for installation and usage instructions.
29+
30+
### How to install CodeRabbit?
31+
32+
View step by step instructions depending on your platform:
33+
34+
<Tabs>
35+
<TabItem value="github" label="GitHub" default>
36+
See our [GitHub App installation guide](./platforms/github-com.md) for step-by-step instructions.
37+
</TabItem>
38+
<TabItem value="gitlab" label="GitLab">
39+
Follow our [GitLab integration guide](/platforms/gitlab-com.mdx) to get started.
40+
</TabItem>
41+
<TabItem value="bitbucket" label="Bitbucket">
42+
Check out the [Bitbucket installation steps](/platforms/bitbucket-cloud.md) for detailed setup.
43+
</TabItem>
44+
<TabItem value="azure" label="Azure DevOps">
45+
View our [Azure DevOps setup guide](/platforms/azure-devops.md) for complete installation instructions.
46+
</TabItem>
47+
</Tabs>
48+
1349
### How accurate is CodeRabbit?
1450

1551
> CodeRabbit demonstrates high accuracy in code reviews based on early adoption results. While 100% accuracy isn't guaranteed due to AI's evolving nature, our technology continuously improves through:
@@ -27,6 +63,51 @@ CodeRabbit works with all programming languages, with varying proficiency based
2763
- Available training data
2864
- Community usage patterns
2965

66+
### Whats the difference between CodeRabbit Code Reviews and CodeRabbit Reports?
67+
68+
CodeRabbit offers two distinct features that serve different roles in your development workflow:
69+
70+
#### CodeRabbit Code Reviews
71+
72+
**Role**: Developer, QA, and Code Reviewer
73+
**Access Level**: Full code access with comprehensive analysis capabilities
74+
75+
**Key Features:**
76+
77+
- **Complete Toolchain**: Runs all available analysis tools on your codebase
78+
- **Static Analysis**: Can execute shell commands and perform deep static analysis against your codebase
79+
- **Direct Code Access**: Has full access to code in issues and pull requests
80+
- **Interactive Chat**: Provides chat features for real-time collaboration and questions
81+
- **Comprehensive Review**: Analyzes code quality, security, performance, and best practices
82+
- **Actionable Feedback**: Provides specific, line-by-line suggestions and improvements
83+
- **Comment Interaction**: Engages with users through comments in pull requests and issues for clarifications and discussions
84+
- **Available in All Tiers**: All features are available across Free, Lite, and Pro plans
85+
86+
#### CodeRabbit Reports
87+
88+
**Role**: Project Manager and Communication Hub
89+
**Access Level**: Summary-only access without direct code interaction
90+
91+
**Key Features:**
92+
93+
- **Summary Generation**: Creates convenient, formatted summaries of all your recent pull requests
94+
- **Customizable Prompts**: Allows you to select or create your own summarization templates
95+
- **High-Level Overview**: Focuses on project progress and changes without code details
96+
- **Comment Analysis**: Reads and summarizes existing comments and discussions
97+
- **No Code Access**: Operates only on summaries and metadata, not the actual codebase
98+
- **Communication Tool**: Designed for stakeholders who need updates without technical details
99+
- **Multi-Channel Delivery**: Sends reports through various communication channels:
100+
- Email notifications
101+
- Slack integration
102+
- Discord webhooks
103+
- Microsoft Teams updates
104+
- **Pro Plan Exclusive**: Reports feature is available only in the Pro plan tier
105+
106+
**In Summary:**
107+
108+
- **Code Reviews** = Technical analysis with full code access for developers
109+
- **Reports** = High-level summaries with no code access for project management
110+
30111
### Data Security
31112

32113
<Tabs>
@@ -92,7 +173,7 @@ Email field and click Update to save your changes.
92173
### Usage and Configuration
93174

94175
- **Language Settings**: Configure review language in repository settings
95-
- **Review Rules**: Customize via [review instructions](/guides/review-instructions)
176+
- **Review Rules**: Customize via [review instructions](/guides/review-instructions.md)
96177
- **Branch Selection**: Default branch reviews enabled by default (configurable)
97178

98179
### Access & Permissions
@@ -108,7 +189,7 @@ Interact with CodeRabbit by:
108189
1. Replying directly to CodeRabbit comments
109190
2. Tagging `@coderabbitai` in PR discussions
110191
3. Adding review comments for specific lines
111-
4. Customize via [review instructions](/guides/review-instructions)
192+
4. Customize via [review instructions](/guides/review-instructions.md)
112193

113194
:::tip Collaboration Mode
114195
When team members are active in PRs, use `@coderabbitai` to engage the bot.
@@ -128,7 +209,7 @@ The following limits enforced _per developer_:
128209
| ---------------- | ------------------------------------------ | ----------------------------- | ----------------------------- | ----------------------------- |
129210
| Files per hour | 200/hour | 200/hour | 200/hour | 400/hour |
130211
| Files per PR | 100 | 100 | 100 | 200 |
131-
| Reviews per hour | 3 back-to-back, then 3/hour (Summary only) | 4 back-to-back, then 4/hour | 3 back-to-back, then 3/hour | 5 back-to-back, then 5/hour |
212+
| Reviews per hour | 3 back-to-back, then 2/hour (Summary only) | 4 back-to-back, then 3/hour | 3 back-to-back, then 2/hour | 5 back-to-back, then 4/hour |
132213
| Chat | N/A | 25 back-to-back, then 50/hour | 10 back-to-back, then 25/hour | 25 back-to-back, then 50/hour |
133214

134215
## Integration Guide {#integration-guide}
@@ -146,7 +227,7 @@ The following limits enforced _per developer_:
146227
3. That's it. CodeRabbit will automatically start reviewing your PRs
147228

148229
:::tip Need Help?
149-
Visit our [Support](/getting-started/support) page for additional assistance or reach out to our team on [Discord](http://discord.gg/coderabbit).
230+
Visit our [Support](/getting-started/support.md) page for additional assistance or reach out to our team on [Discord](http://discord.gg/coderabbit).
150231
:::
151232

152233
#### Unable to View Repositories in GitLab
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Code review best practices
3+
description: Best practices for managing CodeRabbit code reviews.
4+
sidebar_label: Best practices
5+
---
6+
7+
This page lists best practices for performing code reviews with CodeRabbit.
8+
9+
For more information about working with
10+
CodeRabbit through chat, see [Control and manage code reviews](/guides/commands).
11+
12+
For a CodeRabbit command reference, see [Code review command reference](/reference/review-commands).
13+
14+
## Recommended code-review workflow
15+
16+
- Start with `@coderabbitai review` for checking new changes.
17+
- Use `@coderabbitai full review` when major changes require a fresh perspective.
18+
- Generate summaries after significant updates using `@coderabbitai summary`.
19+
20+
## Managing large changes
21+
22+
- Use `@coderabbitai pause` before making multiple commits.
23+
- Resume reviews with `@coderabbitai resume` when ready.
24+
- Consider `@coderabbitai full review` after substantial changes.
25+
26+
## Documentation flow
27+
28+
- Run `@coderabbitai generate docstrings` after finalizing function implementations.
29+
- Learn more about [docstring generation](/finishing-touches/docstrings).
30+
31+
## Overall tips
32+
33+
- Commands are case-insensitive (`@coderabbitai REVIEW` works the same as `@coderabbitai review`).
34+
- Commands can be issued by anyone with write access to the repository.
35+
- Multiple commands can be used in sequence as needed.
36+
- Use `@coderabbitai configuration` to export your settings before making changes.
37+
38+
## Command response time
39+
40+
- Most commands (pause, resume, ignore) take effect immediately.
41+
- Review commands typically complete within a few minutes, depending on PR size.
42+
- Docstring generation time varies based on the number of functions.

docs/guides/code-review-overview.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Review pull requests
3+
description: An overview of CodeRabbit's core code review features.
4+
sidebar_label: Overview
5+
---
6+
7+
The central feature of CodeRabbit is its ability to proactively review
8+
new pull requests on your code repository.
9+
10+
CodeRabbit reviews take the form of pull request comments that
11+
include summaries, analyses, and initial critiques of the proposed changes.
12+
This information, usually added to pull requests within minutes, can help your team perform more rapid, better-informed code reviews.
13+
14+
The following sections present an overview of this feature. For a hands-on example that lets you experience a CodeRabbit code review using
15+
a real repository, see [Quickstart](/getting-started/quickstart).
16+
17+
## Automatically review pull requests {#review}
18+
19+
After you [integrate CodeRabbit with your repository](/platforms), CodeRabbit proceeds
20+
to automatically review every subsequent pull request, as soon as each one is created.
21+
22+
CodeRabbit performs code reviews by attaching comments to the pull request.
23+
These comments contain detailed summaries and analyses of the changes,
24+
as well as listing out problems or areas for potential improvement that it found.
25+
26+
CodeRabbit uses [a variety of open-source linters and security tools](/tools) and a custom
27+
code verification agent to provide this analysis. CodeRabbit
28+
also consults several models to further analyze and critique the proposed changes,
29+
using all of the content of your repository as context. The code-review comment that CodeRabbit attaches
30+
to your pull request synthesizes and summarizes all of the information collected from these different sources.
31+
32+
For more information about the graph analysis that CodeRabbit includes with its reviews
33+
when available, see [CodeRabbit Code Graph Analysis](/integrations/code-graph-analysis).
34+
35+
### Events that trigger automated reviews {#events}
36+
37+
By default, the following activity in your repository triggers CodeRabbit to
38+
perform a code review:
39+
40+
- If CodeRabbit sees a new pull request, then it immediately performs a full review
41+
of the proposed code changes.
42+
- If an open pull request that CodeRabbit has already reviewed gets modified with another
43+
commit, then CodeRabbit performs an incremental review that focuses on the new commit.
44+
45+
## Interact with CodeRabbit reviews {#interact}
46+
47+
After CodeRabbit attaches its initial code-review comment to a pull request, you can
48+
directly interact with CodeRabbit by mentioning its username, `@coderabbitai`, in comments
49+
that you post to the pull request.
50+
51+
These interactions can serve several purposes:
52+
53+
- Free-form discussion about the pull request and the ongoing code review.
54+
- Commands to have CodeRabbit perform specific actions regarding the code review.
55+
- Prompts to have CodeRabbit generate its own improvements to the branch under review.
56+
57+
### Chat with CodeRabbit {#chat}
58+
59+
You can have open-ended, natural-language discussion with CodeRabbit during a code review, treating it
60+
as an LLM-powered chatbot that has your entire code repository available for context. For more information, see [CodeRabbit Chat](/guides/agent_chat).
61+
62+
### Manage CodeRabbit review behavior {#manage}
63+
64+
CodeRabbit recognizes a variety of keyword-based commands that let you control its
65+
behavior during a code review, including the following:
66+
67+
- Pause or resume automated reviews of the pull request.
68+
- Manually request a review, when automated reviews are paused.
69+
- Resolve all open comments authored by CodeRabbit.
70+
71+
For more information, see [Control and manage code reviews](/guides/commands).
72+
73+
### Generate improvements {#generate}
74+
75+
You can command CodeRabbit to generate improvements to the branch under review.
76+
CodeRabbit accomplishes this by publishing a new branch based on the branch under review,
77+
and creating a new pull request for your own review.
78+
79+
Available code-generation commands let you request the following from CodeRabbit:
80+
81+
- Implement the suggestions for improvements that CodeRabbit has made in its earlier code review comments.
82+
- Generate inline documentation for any undocumented functions that this pull request proposes to add.
83+
84+
For more information, see [Generate improvements](/guides/generate-improvements).
85+
86+
## What's next {#whats-next}
87+
88+
- [Control and manage code reviews](/guides/commands)
89+
- [Generate code improvements](/guides/generate-improvements)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: Code review troubleshooting
3+
description: Troubleshooting CodeRabbit code reviews.
4+
sidebar_label: Troubleshooting
5+
---
6+
7+
This page is about troubleshooting interactive code review sessions with CodeRabbit. For more information about working with
8+
CodeRabbit through chat, see [Control and manage code reviews](/guides/commands).
9+
10+
If a CodeRabbit command doesn't seem to work:
11+
12+
1. Check that you have the necessary repository permissions.
13+
2. Verify the command syntax.
14+
3. Look for any response from CodeRabbit in the PR comments.
15+
4. Use `@coderabbitai help` for command guidance.
16+
17+
Need help? Join our community on [Discord](https://discord.gg/coderabbit) or [contact our support team](/getting-started/support).

0 commit comments

Comments
 (0)