This repository was archived by the owner on Aug 16, 2025. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork69
Code graph _analysis_ docs#272
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
66 changes: 66 additions & 0 deletionsdocs/integrations/code-graph-analysis.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| --- | ||
| title: Code Graph Analysis | ||
| description: Learn about CodeRabbit's intelligent graph-based code analysis. | ||
| sidebar_label: Code Graph Analysis | ||
| sidebar_position: 6 | ||
| --- | ||
| # CodeRabbit Code Graph Analysis | ||
| ## What is Code Graph Analysis? | ||
| Code Graph Analysis is an intelligent code analysis feature that enhances your code reviews by automatically mapping relationships between files in your codebase. By | ||
| understanding how your code connects and interacts, Code Graph provides concrete snippets of context that makes reviews more effective and insightful. | ||
| ## How Code Graph Analysis Enhances Your Reviews | ||
| When reviewing code with CodeRabbit, Code Graph Analysis automatically: | ||
| - **Maps symbol definitions and references** across your entire codebase | ||
| - **Analyzes commit history** to identify files that frequently change together | ||
| - **Builds relationship graphs** showing how different parts of your code connect | ||
| - **Enriches reviews with contextual information** about related code | ||
| Code Graph Analysis is also available in the CodeRabbit Chat. CodeRabbit Chat will automatically analyze your codebase with it when the agent deems it necessary. | ||
| ## Key Features | ||
| ### Three Types of Contextual Information | ||
| Code Graph Analysis adds three powerful layers of context to your reviews: | ||
| 1. **Definition Files**: Files containing definitions that are referenced in the current code | ||
| 2. **Reference Files**: Files that reference symbols defined in the current code | ||
| 3. **Related Files**: Files that appear related based on usage patterns and commit history | ||
| ### Language Support | ||
| Code Graph Analysis works with: | ||
| - Bash | ||
| - C | ||
| - C# | ||
| - C++ | ||
| - CSS | ||
| - Elixir | ||
| - Go | ||
| - Java | ||
| - JavaScript | ||
| - Kotlin | ||
| - Lua | ||
| - PHP | ||
| - Python | ||
| - Ruby | ||
| - Rust | ||
| - Scala | ||
| - Swift | ||
| - TSX | ||
| - TypeScript | ||
| ## Availability | ||
| Code Graph Analysis is available on the Lite tier and above. | ||
| --- | ||
| Learn more about CodeRabbit's advanced features at [coderabbit.ai](https://coderabbit.ai) |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.