Skip to content

Commit 40d6c7d

Browse files
authored
Merge branch 'main' into split-commands
2 parents b649449 + 57bdf56 commit 40d6c7d

File tree

6 files changed

+110
-0
lines changed

6 files changed

+110
-0
lines changed

docs/changelog.md

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

8+
## May 19, 2025
9+
10+
### Lua Support with Luacheck
11+
12+
We're excited to announce enhanced support for Lua code analysis with [Luacheck](https://github.com/mpeterv/luacheck), a powerful static analyzer and linter for Lua code.
13+
14+
## May 14, 2025
15+
16+
### CodeRabbit for VS Code, Cursor, and Windsurf Is Here 🎉
17+
18+
We're thrilled to announce that CodeRabbit's AI code reviews have officially landed inside **VS Code and all its forks, including Cursor and Windsurf!** No more review bottlenecks or context switches: now you can get _instant, inline feedback right in your editor, completely free._
19+
20+
**Why you'll love it:**
21+
22+
- 📝 **Inline Code Reviews**: Senior-dev-level annotation on every line. CodeRabbit becomes your AI pair programmer, annotating staged & unstaged commits before you even open a PR.
23+
- 🚀 **Built for Flow, Not Friction**: Code, review, commit—rise & repeat without breaking your flow state. Reviews run automatically on every commit so you ship faster.
24+
- 🛠️ **Fix-with-AI**: One-Click Fix for quick tweaks; "Fix with AI" hands off more complex suggestions to your favorite coding agent, complete with full context.
25+
- 🧩 **Compatible with Cursor, Windsurf & Language-Agnostic**: Works out of the box on VS Code, Cursor, Windsurf. Supports Java, JavaScript, PHP, Python, TypeScript, Go, Ruby, and more.
26+
27+
Pair these IDE-embedded reviews with our deeper Git-platform reviews for a multi-layered approach that catches more bugs and cuts down overall review time.
28+
29+
- [Join the launch discussion on Discord](https://discord.com/channels/1134356397673414807/1145813948193575023/1372210767838842950)
30+
- [Install the CodeRabbit VSCode Extension](https://coderabbit.link/vscode)
31+
832
## April 19, 2025
933

1034
### Docstring Path Instructions

docs/reference/caching.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Caching
2+
3+
CodeRabbit provides caching capabilities for code and dependencies to accelerate the review process. This feature enhances your development workflow by delivering faster feedback.
4+
5+
## Security and Privacy
6+
7+
- Cached data is encrypted (except for OSS projects)
8+
- Cache expires after a maximum of one week
9+
- Cached data is used exclusively for speeding up reviews
10+
11+
## Configuration
12+
13+
You can opt out of caching in two ways:
14+
15+
1. **Disable Cache**: Configure `Review - Disable Cache` at either:
16+
17+
- Organization level
18+
- Repository level
19+
20+
2. **Disable Data Retention**: Turn off the `Data Retention` setting in your Organization Settings to disable all data retention across your organization.

docs/tools/list.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
2727
| JSX | [Biome][Biome], [oxlint][oxlint] | Code Quality |
2828
| Kotlin | [detekt][detekt] | Code Quality |
2929
| Kubernetes | [Checkov][Checkov] | Code Security |
30+
| Lua | [Luacheck][Luacheck] | Code Quality |
3031
| Markdown | [markdownlint][markdownlint], [LanguageTool][LanguageTool] | Code Quality, Grammar Checking |
3132
| PHP | [PHPStan][PHPStan] | Code Quality |
3233
| Plaintext | [LanguageTool][LanguageTool] | Grammar and Spell Checking |
@@ -72,3 +73,4 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
7273
[PrismaLint]: /tools/prisma-lint.md
7374
[oxlint]: /tools/oxlint.md
7475
[ShopifyCLI]: /tools/shopify-cli.md
76+
[Luacheck]: /tools/luacheck.md

docs/tools/luacheck.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: Luacheck
3+
sidebar_label: Luacheck
4+
description: CodeRabbit's guide to Luacheck.
5+
---
6+
7+
```mdx-code-block
8+
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
9+
10+
<ProPlanNotice />
11+
```
12+
13+
[Luacheck](https://github.com/mpeterv/luacheck) is a static analyzer and linter for Lua code that detects various issues such as undefined global variables, unused variables and values, accessing uninitialized variables, unreachable code, and more.
14+
15+
## Supported Files
16+
17+
Luacheck will run on files with the following extensions:
18+
19+
- `.lua`
20+
21+
## Configuration
22+
23+
Luacheck supports the following configuration files:
24+
25+
- `.luacheckrc`
26+
- `luacheckrc`
27+
- `.luacheckrc.lua`
28+
- `luacheckrc.lua`
29+
30+
:::note
31+
32+
Luacheck does not require configuration to run. If no configuration file is found, it will use default settings.
33+
34+
:::
35+
36+
## Features
37+
38+
Luacheck can detect:
39+
40+
- Usage of undefined global variables
41+
- Unused variables and values
42+
- Accessing uninitialized variables
43+
- Unreachable code
44+
- And many more issues
45+
46+
## Links
47+
48+
- [Luacheck GitHub Repository](https://github.com/mpeterv/luacheck)
49+
- [Luacheck Documentation](https://luacheck.readthedocs.io/)

sidebars.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ const sidebars: SidebarsConfig = {
163163
"tools/golangci-lint",
164164
"tools/hadolint",
165165
"tools/languagetool",
166+
"tools/luacheck",
166167
"tools/markdownlint",
167168
"tools/oxlint",
168169
"tools/phpstan",
@@ -179,6 +180,7 @@ const sidebars: SidebarsConfig = {
179180
"tools/yamllint",
180181
],
181182
},
183+
"reference/caching",
182184
],
183185
},
184186
{

static/schema/schema.v2.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,19 @@
843843
"additionalProperties": false,
844844
"default": {},
845845
"description": "Configuration for Shopify Theme Check to ensure theme quality and best practices"
846+
},
847+
"luacheck": {
848+
"type": "object",
849+
"properties": {
850+
"enabled": {
851+
"type": "boolean",
852+
"default": true,
853+
"description": "Enable Lua code linting | Luacheck helps maintain consistent and error-free Lua code | v1.2.0"
854+
}
855+
},
856+
"additionalProperties": false,
857+
"default": {},
858+
"description": "Configuration for Lua code linting to ensure code quality"
846859
}
847860
},
848861
"additionalProperties": false,

0 commit comments

Comments
 (0)