You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrations/knowledge-base.md
+16-13Lines changed: 16 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,20 +19,23 @@ Or you can comment directly on some lines of code in the PR. `@coderabbitai do n
19
19
20
20
For more information, see [Teach CodeRabbit your review preferences](/guides/learnings).
21
21
22
-
## Code Guidelines {#code_guidelines}
22
+
## Code Guidelines {#code-guidelines}
23
23
24
-
CodeRabbit will analyse and learn from your organisation's code guidelines, which you can set up in the knowledge base section. These guidelines will then be used to conduct thorough code reviews.
24
+
CodeRabbit can read _code guideline_ files that set standards and expectations about
25
+
your team's coding practices, described in natural language. CodeRabbit applies any instructions it reads from a repository's code guideline files to all subsequent code reviews.
25
26
26
-
The following patterns are scanned by default.
27
+
By default, CodeRabbit looks for and loads guideline files used by other AI coding assistants, including the following:
27
28
28
-
```text
29
-
**/.cursorrules
30
-
.github/copilot-instructions.md
31
-
**/CLAUDE.md
32
-
**/.cursor/rules/*
33
-
**/.windsurfrules
34
-
**/.clinerules/*
35
-
**/.rules/*
36
-
```
29
+
- Claude Code
30
+
- Cursor
31
+
- Gemini
32
+
- GitHub Copilot
33
+
- Windsurf
37
34
38
-

35
+
You can also mark any other file
36
+
or set of files in your repository as code guidelines by providing CodeRabbit with a list
37
+
of paths to those files.
38
+
39
+
This feature is enabled by default; you can disable it if needed.
40
+
41
+
For more information about configuring the code guidelines feature, see [Code guidelines](/reference/configuration#code-guidelines) in the configuration reference page.
Copy file name to clipboardExpand all lines: docs/reference/configuration.md
+94Lines changed: 94 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1976,6 +1976,100 @@ Specify the Jira project keys to use for the knowledge base.
1976
1976
1977
1977
Specify the scope of learnings to use for the knowledge base. 'local' uses the repository's learnings, 'global' uses the organization's learnings, and 'auto' uses repository's learnings for public repositories and organization's learnings for private repositories.
1978
1978
1979
+
### Code guidelines
1980
+
1981
+
You can define a list of paths that guide CodeRabbit to your organization's code guidelines.
1982
+
If you do, then CodeRabbit applies these guidelines to its code reviews. For more
1983
+
information, see [Code Guidelines](/integrations/knowledge-base#code_guidelines).
0 commit comments