Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 342dfb1

Browse files
Merge branch 'main' into feature/issue/160
2 parents 465c6cd + 9cd059e commit 342dfb1

File tree

12 files changed

+157
-5
lines changed

12 files changed

+157
-5
lines changed

docs/changelog.md

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

8+
## May 25, 2025
9+
10+
### New Security and Code Quality Tools
11+
12+
We're excited to announce the addition of two powerful tools to our static analysis arsenal:
13+
14+
- **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).
15+
16+
- **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.
17+
18+
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.
19+
820
## May 19, 2025
921

1022
### Lua Support with Luacheck

docs/platforms/github-enterprise-server.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ steps below to
111111
- Pull request review thread
112112
- Push
113113
- Release
114+
- **Where can this GitHub App be installed?**: Select `Any account`
114115
6. Click **Create GitHub App**.
115116

116117
Once the GitHub App has been created, click on **Generate a new client secret**
@@ -170,3 +171,19 @@ Use this CodeRabbit IP if your instance requires IP whitelisting
170171

171172
VPN tunneling is available as an add-on package. Please reach out to us at
172173
[contact@coderabbit.ai](mailto:contact@coderabbit.ai) if you are interested.
174+
175+
### **FAQ**
176+
177+
#### Who should create the OAuth App and GitHub App?
178+
179+
The OAuth App and GitHub App should be created by a user with administrative
180+
privileges on the GitHub Enterprise Server instance. This user will be responsible for managing the integration with CodeRabbit.
181+
182+
#### I see an error when trying to log in to CodeRabbit. What should I do?
183+
184+
If you encounter an error during the login process, please ensure that:
185+
186+
- The OAuth App and GitHub App are correctly configured with the right URLs and permissions.
187+
- The browser local storage and cookies related to CodeRabbit are cleared.
188+
189+
If the issue persists, contact our support team.

docs/self-hosted/azure-devops.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ LLM_PROVIDER=azure-openai
6464
LLM_TIMEOUT=360000
6565
AZURE_OPENAI_ENDPOINT=<azure-openai-endpoint>
6666
AZURE_OPENAI_API_KEY=<key>
67-
## it is recommended to deploy gpt-4.1-mini, o4-mini, o3 deployments, gpt-4.1 (optionally).
67+
## it is recommended to deploy gpt-4.1-mini, o4-mini, o3, gpt-4.1 (optionally).
6868
AZURE_GPT41MINI_DEPLOYMENT_NAME=<gpt-4.1-mini-deployment-name>
6969
AZURE_O4MINI_DEPLOYMENT_NAME=<o4-mini-deployment-name>
7070
AZURE_O3_DEPLOYMENT_NAME=<o3-deployment-name>
@@ -96,6 +96,7 @@ HTTPS_PROXY=[<https-proxy-url>]
9696
NO_PROXY=[<no-proxy-url>]
9797

9898
# if using AWS Bedrock
99+
# it is required to have access to claude-3-haiku, claude-3-5-haiku, claude-sonnet-4, claude-opus-4.
99100
LLM_PROVIDER=bedrock-anthropic
100101
LLM_TIMEOUT=360000
101102
AWS_ACCESS_KEY_ID=<aws-access-key>

docs/self-hosted/bitbucket.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ LLM_PROVIDER=azure-openai
5656
LLM_TIMEOUT=360000
5757
AZURE_OPENAI_ENDPOINT=<azure-openai-endpoint>
5858
AZURE_OPENAI_API_KEY=<key>
59-
## it is recommended to deploy gpt-4.1-mini, o4-mini, o3 deployments, gpt-4.1 (optionally).
59+
## it is recommended to deploy gpt-4.1-mini, o4-mini, o3, gpt-4.1 (optionally).
6060
AZURE_GPT41MINI_DEPLOYMENT_NAME=<gpt-4.1-mini-deployment-name>
6161
AZURE_O4MINI_DEPLOYMENT_NAME=<o4-mini-deployment-name>
6262
AZURE_O3_DEPLOYMENT_NAME=<o3-deployment-name>
@@ -88,6 +88,7 @@ HTTPS_PROXY=[<https-proxy-url>]
8888
NO_PROXY=[<no-proxy-url>]
8989

9090
# if using AWS Bedrock
91+
# it is required to have access to claude-3-haiku, claude-3-5-haiku, claude-sonnet-4, claude-opus-4.
9192
LLM_PROVIDER=bedrock-anthropic
9293
LLM_TIMEOUT=360000
9394
AWS_ACCESS_KEY_ID=<aws-access-key>

docs/self-hosted/github.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ LLM_PROVIDER=azure-openai
6767
LLM_TIMEOUT=360000
6868
AZURE_OPENAI_ENDPOINT=<azure-openai-endpoint>
6969
AZURE_OPENAI_API_KEY=<key>
70-
## it is recommended to deploy gpt-4.1-mini, o4-mini, o3 deployments, gpt-4.1 (optionally).
70+
# it is recommended to deploy gpt-4.1-mini, o4-mini, o3, gpt-4.1 (optionally).
7171
AZURE_GPT41MINI_DEPLOYMENT_NAME=<gpt-4.1-mini-deployment-name>
7272
AZURE_O4MINI_DEPLOYMENT_NAME=<o4-mini-deployment-name>
7373
AZURE_O3_DEPLOYMENT_NAME=<o3-deployment-name>
@@ -99,6 +99,7 @@ HTTPS_PROXY=[<https-proxy-url>]
9999
NO_PROXY=[<no-proxy-url>]
100100

101101
# if using AWS Bedrock
102+
# it is required to have access to claude-3-haiku, claude-3-5-haiku, claude-sonnet-4, claude-opus-4.
102103
LLM_PROVIDER=bedrock-anthropic
103104
LLM_TIMEOUT=360000
104105
AWS_ACCESS_KEY_ID=<aws-access-key>

docs/self-hosted/gitlab.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ LLM_PROVIDER=azure-openai
6262
LLM_TIMEOUT=360000
6363
AZURE_OPENAI_ENDPOINT=<azure-openai-endpoint>
6464
AZURE_OPENAI_API_KEY=<key>
65-
## it is recommended to deploy gpt-4.1-mini, o4-mini, o3 deployments, gpt-4.1 (optionally).
65+
## it is recommended to deploy gpt-4.1-mini, o4-mini, o3, gpt-4.1 (optionally).
6666
AZURE_GPT41MINI_DEPLOYMENT_NAME=<gpt-4.1-mini-deployment-name>
6767
AZURE_O4MINI_DEPLOYMENT_NAME=<o4-mini-deployment-name>
6868
AZURE_O3_DEPLOYMENT_NAME=<o3-deployment-name>
@@ -94,6 +94,7 @@ HTTPS_PROXY=[<https-proxy-url>]
9494
NO_PROXY=[<no-proxy-url>]
9595

9696
# if using AWS Bedrock
97+
# it is required to have access to claude-3-haiku, claude-3-5-haiku, claude-sonnet-4, claude-opus-4.
9798
LLM_PROVIDER=bedrock-anthropic
9899
LLM_TIMEOUT=360000
99100
AWS_ACCESS_KEY_ID=<aws-access-key>

docs/tools/brakeman.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Brakeman
3+
sidebar_label: Brakeman
4+
description: CodeRabbit's guide to Brakeman.
5+
---
6+
7+
```mdx-code-block
8+
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
9+
10+
<ProPlanNotice />
11+
```
12+
13+
[Brakeman](https://brakemanscanner.org/) is a static analysis tool which checks Ruby on Rails applications for security vulnerabilities. It scans your application's code for potential security issues and provides detailed reports about any vulnerabilities it finds.
14+
15+
## Supported Files
16+
17+
Brakeman will run on files with the following extensions:
18+
19+
- `Gemfile`
20+
- `*.rb`
21+
- `*.erb`
22+
23+
## Features
24+
25+
Brakeman can detect many critical vulnerabilities such as:
26+
27+
- SQL injection
28+
- Cross-site scripting (XSS)
29+
- Mass assignment
30+
- Remote code execution
31+
- And many more security vulnerabilities
32+
- Out of date package versions
33+
- Etc
34+
35+
## Links
36+
37+
- [Brakeman Official Website](https://brakemanscanner.org/)
38+
- [Brakeman GitHub Repository](https://github.com/presidentbeef/brakeman)
39+
- [Brakeman Documentation](https://brakemanscanner.org/docs/)
40+
- [Warning Types](https://brakemanscanner.org/docs/warning_types/)

docs/tools/clippy.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: Clippy
3+
sidebar_label: Clippy
4+
description: CodeRabbit's guide to Clippy.
5+
---
6+
7+
```mdx-code-block
8+
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
9+
10+
<ProPlanNotice />
11+
```
12+
13+
[Clippy](https://github.com/rust-lang/rust-clippy) is a collection of lints to catch common mistakes and improve your Rust code. It is the official linter for the Rust programming language.
14+
15+
## Supported Files
16+
17+
Clippy will run on files with the following extensions:
18+
19+
- `*.rs`
20+
21+
## Configuration
22+
23+
Clippy supports the following configuration files:
24+
25+
- `clippy.toml`
26+
- `.clippy.toml`
27+
28+
:::note
29+
30+
Clippy does not require configuration to run. If no configuration file is found, it will use default settings.
31+
32+
A Cargo.toml is required.
33+
34+
:::
35+
36+
## Features
37+
38+
Clippy can detect many code quality issues such as:
39+
40+
- Style violations
41+
- Common mistakes
42+
- Performance issues
43+
- Deprecated code patterns
44+
- And many more Rust-specific issues
45+
46+
## Links
47+
48+
- [Clippy GitHub Repository](https://github.com/rust-lang/rust-clippy)
49+
- [Clippy Documentation](https://rust-lang.github.io/rust-clippy/master/)
50+
- [Available Lints](https://rust-lang.github.io/rust-clippy/master/index.html)

docs/tools/list.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
3535
| Protobuf | [Buf][Buf] | Code Quality |
3636
| Python | [Ruff][Ruff] | Code Quality |
3737
| Regal | [Regal][Regal] | Code Quality |
38-
| Ruby | [RuboCop][RuboCop] | Code Quality |
38+
| Ruby | [RuboCop][RuboCop], [Brakeman][Brakeman] | Code Quality, Code Security |
39+
| Rust | [Clippy][Clippy] | Code Quality |
3940
| Semgrep | [Semgrep][Semgrep] | Code Security |
4041
| Shell (sh, bash, ksh, dash) | [ShellCheck][ShellCheck] | Code Quality |
4142
| Shopify | [Shopify CLI][ShopifyCLI] | Code Quality |
@@ -74,3 +75,5 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
7475
[oxlint]: /tools/oxlint.md
7576
[ShopifyCLI]: /tools/shopify-cli.md
7677
[Luacheck]: /tools/luacheck.md
78+
[Brakeman]: /tools/brakeman.md
79+
[Clippy]: /tools/clippy.md
Loading
Loading

static/schema/schema.v2.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,19 @@
792792
"default": {},
793793
"description": "CircleCI tool is a static checker for CircleCI config files."
794794
},
795+
"clippy": {
796+
"type": "object",
797+
"properties": {
798+
"enabled": {
799+
"type": "boolean",
800+
"default": true,
801+
"description": "Enable Clippy | Clippy is a collection of lints to catch common mistakes and improve your Rust code. | Enable Clippy integration."
802+
}
803+
},
804+
"additionalProperties": false,
805+
"default": {},
806+
"description": "Clippy is a collection of lints to catch common mistakes and improve your Rust code."
807+
},
795808
"sqlfluff": {
796809
"type": "object",
797810
"properties": {
@@ -856,6 +869,19 @@
856869
"additionalProperties": false,
857870
"default": {},
858871
"description": "Configuration for Lua code linting to ensure code quality"
872+
},
873+
"brakeman": {
874+
"type": "object",
875+
"properties": {
876+
"enabled": {
877+
"type": "boolean",
878+
"default": true,
879+
"description": "Enable Brakeman | Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications. | v7.0.2"
880+
}
881+
},
882+
"additionalProperties": false,
883+
"default": {},
884+
"description": "Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications. | v7.0.2"
859885
}
860886
},
861887
"additionalProperties": false,

0 commit comments

Comments
 (0)