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
+8-13Lines changed: 8 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -23,20 +23,15 @@ Watch our [video walkthrough on learnings](https://www.youtube.com/watch?v=Yu0cm
23
23
24
24
:::
25
25
26
-
## Code Guidelines {#code_guidelines}
26
+
## Code Guidelines {#code-guidelines}
27
27
28
-
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.
28
+
CodeRabbit can read _code guideline_ files that set standards and expectations about
29
+
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.
29
30
30
-
The following patterns are scanned by default.
31
+
By default, CodeRabbit looks for the standard guideline files used by other AI coding assistants, including Claude Code, Cursor, and Windsurf. You can also mark any other file
32
+
or set of files in your repository as code guideline files by providing CodeRabbit with a list
33
+
of paths to those files.
31
34
32
-
```text
33
-
**/.cursorrules
34
-
.github/copilot-instructions.md
35
-
**/CLAUDE.md
36
-
**/.cursor/rules/*
37
-
**/.windsurfrules
38
-
**/.clinerules/*
39
-
**/.rules/*
40
-
```
35
+
This feature is enabled by default; you can disable it if needed.
41
36
42
-

37
+
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
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