@@ -121,10 +121,12 @@ The webhook `https://coderabbit.ai/bitbucketHandler` will now be installed for t
:::note
-If you are experiencing issues with the webhook, such as CodeRabbit not being able to access the repository, or not reviewing pull requests, you can manually delete the webhook to the repository.
+If you are experiencing issues with the webhook, such as CodeRabbit not being able to access the repository, or not
+reviewing pull requests, you can manually delete the webhook to the repository.
Then refresh the repository page in the CodeRabbit app and you can reinstall the webhook.
-If you cannot install the webhook please check that your Bitbucket user has the necessary permissions to install the webhook and the App Password is properly configured.
+If you cannot install the webhook please check that your Bitbucket user has the necessary permissions to install the
+webhook and the API Token is properly configured.
:::
diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md
new file mode 100644
index 00000000..bd0b3e8e
--- /dev/null
+++ b/docs/reference/configuration.md
@@ -0,0 +1,4357 @@
+---
+title: Configuration reference
+description: Complete reference for all CodeRabbit configuration options.
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+This reference guide lists all of the code review configuration options that
+CodeRabbit makes available.
+
+For an overview of how configuration works with CodeRabbit, see [Configure CodeRabbit](/guides/configuration-overview).
+
+## How to use this reference {#how-to}
+
+Each entry in this reference corresponds to a single CodeRabbit configuration setting, including an informational table and a description of what the setting does. The tables have two views, which you can select with a tab:
+
+- The **Web UI** tab displays the location and default value of the setting in the CodeRabbit web interface, for both [organization settings](/guides/organization-settings) and [repository settings](/guides/repository-settings).
+- The **coderabbit.yaml** tab displays information about the field's location and datatype in [your repository's `.coderabbit.yaml` file](/getting-started/configure-coderabbit).
+
+## Global Settings
+
+### Data retention
+
+
+
+
+
+
+ Location |
+ General > Data Retention |
+
+
+ Default |
+ true |
+
+
+
+
+ _This setting can be defined only in the web UI settings for your
+ organization._
+
+
+
+If `true`, then CodeRabbit is allowed to retain enough data about your code
+review history in order to enable the following features:
+
+- **Caching**: allows CodeRabbit to store data about your repository between
+ code reviews, improving the speed of subsequent reviews.
+- **Knowledge base**: allows CodeRabbit to maintain its own database about
+ your repository and your team's code review preferences, which can improve
+ the quality and specificity of code reviews generated by CodeRabbit.
+
+If your organization operates under strict data-retention policies, then you can
+disable data retention. Doing so immediately deletes any cache or knowledge-base data that CodeRabbit has collected for your organization, and prevents CodeRabbit from
+retaining further cache or knowledge-base data.
+
+If you re-enable data retention, then CodeRabbit re-enables these features, and resumes collecting cache and knowledge-base data.
+
+### Early Access
+
+
+
+
+
+
+ Location |
+ General > Early Access |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `early_access` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+If enabled, then CodeRabbit lets you use early-access features in your
+code reviews.
+
+### Enable Free Tier
+
+
+
+
+
+
+ Location |
+ General > Enable Free Tier |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `enable_free_tier` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+If enabled, then CodeRabbit allows free tier features for users not on a paid plan.
+
+For more information about payment tiers and features, see [Pricing](https://www.coderabbit.ai/pricing).
+
+### Language
+
+
+
+
+
+
+ Location |
+ General > Language |
+
+
+ Default |
+ en-US |
+
+
+
+
+
+
+
+ Field |
+ `language` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "en-US" |
+
+
+
+
+
+Defines the written language that CodeRabbit presents its review comments in. Defaults
+to U.S. English.
+
+### Tone Instructions
+
+
+
+
+
+
+ Location |
+ General > Tone Instructions |
+
+
+ Default |
+ |
+
+
+
+
+
+
+
+ Field |
+ `tone_instructions` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ |
+
+
+
+
+
+A natural-language description of the tone of voice that CodeRabbit should
+apply to its review instructions, if you want a tone different from its
+default.
+
+A few possible examples:
+
+- `Use an encouraging, supportive tone that celebrates good practices while gently suggesting improvements.`
+- `Adopt a concise, matter-of-fact style that gets straight to the point without unnecessary pleasantries.`
+- `Deliver all review comments in the style of a televised nature documentary, perhaps with David Attenborough hosting.`
+
+## Review
+
+### Basic Review Settings
+
+#### Abort On Close
+
+
+
+
+
+
+ Location |
+ Review > Settings > Abort On Close |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.abort_on_close` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Abort the in-progress review if the pull request is closed or merged.
+
+#### Assess Linked Issues
+
+
+
+
+
+
+ Location |
+ Review > Settings > Assess Linked Issues |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.assess_linked_issues` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+If enabled, then the reviews that CodeRabbit generates include assessments of how well a proposed code change addresses any issues that the pull request refers to. CodeRabbit considers issues referred to by number in the following locations:
+
+- The title of the pull request.
+- The description of the pull request.
+- (GitHub only) The **Development** field of the pull request.
+
+Besides this setting, issue assessment requires at least one of the following:
+
+- You use the built-in issue managemet system of GitHub or GitLab.
+- You have integrated CodeRabbit with an external issue manager.
+
+For more information, see [Integrate issue tracking](/integrations/issue-integrations/)
+and [Let CodeRabbit read your issue trakcer](https://docs.coderabbit.ai/guides/setup-best-practices#issues).
+
+#### Auto Apply Labels
+
+
+
+
+
+
+ Location |
+ Review > Settings > Auto Apply Labels |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `reviews.auto_apply_labels` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+Automatically apply the suggested labels to the PR/MR.
+
+#### Auto Assign Reviewers
+
+
+
+
+
+
+ Location |
+ Review > Settings > Auto Assign Reviewers |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `reviews.auto_assign_reviewers` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+Automatically assign suggested reviewers to the pull request
+
+#### Auto Title Instructions
+
+
+
+
+
+
+ Location |
+ Review > Settings > Auto Title Instructions |
+
+
+ Default |
+ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.auto_title_instructions` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ |
+
+
+
+
+
+Custom instructions for auto-generating the PR/MR title.
+
+#### Auto Title Placeholder
+
+
+
+
+
+
+ Location |
+ Review > Settings > Auto Title Placeholder |
+
+
+ Default |
+ @coderabbitai |
+
+
+
+
+
+
+
+ Field |
+ `reviews.auto_title_placeholder` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "@coderabbitai" |
+
+
+
+
+
+Add this keyword in the PR/MR title to auto-generate the title.
+
+#### Changed Files Summary
+
+
+
+
+
+
+ Location |
+ Review > Settings > Changed Files Summary |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.changed_files_summary` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Generate a summary of the changed files in the walkthrough.
+
+#### Collapse Walkthrough
+
+
+
+
+
+
+ Location |
+ Review > Settings > Collapse Walkthrough |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `reviews.collapse_walkthrough` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+Generate walkthrough in a markdown collapsible section.
+
+#### Commit Status
+
+
+
+
+
+
+ Location |
+ Review > Settings > Commit Status |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.commit_status` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Set the commit status to 'pending' when the review is in progress and 'success' when it is complete.
+
+#### Disable Cache
+
+
+
+
+
+
+ Location |
+ Review > Settings > Disable Cache |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `reviews.disable_cache` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+Activate this setting to disallow CodeRabbit from caching your repository's code and dependencies. This forces CodeRabbit to download the code and dependencies fresh from the repository for every code review that it performs.
+
+When caching is allowed, then CodeRabbit stores a cache of code and metadata from
+your repostory for up to seven days after its most recent code review. This cache
+lets CodeRabbit save time and effort in between subsquent reviews of the same
+repository. For more information, see [Caching](/reference/caching/).
+
+We recommend leaving this setting off, which allows caching, and can speed up
+code reviews. For more information, see
+[Trust the defaults](https://docs.coderabbit.ai/guides/setup-best-practices#defaults).
+
+:::note
+The [Data Retention](#data-retention) setting overrides this one. If you disable
+all data retention, then your repositories won't keep a cache.
+:::
+
+#### Fail Commit Status
+
+
+
+
+
+
+ Location |
+ Review > Settings > Fail Commit Status |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `reviews.fail_commit_status` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+Set the commit status to 'failure' when the PR cannot be reviewed by CodeRabbit for any reason.
+
+#### High Level Summary
+
+
+
+
+
+
+ Location |
+ Review > Settings > High Level Summary |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.high_level_summary` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Generate a high level summary of the changes in the PR/MR description.
+
+#### High Level Summary In Walkthrough
+
+
+
+
+
+
+ Location |
+ Review > Settings > High Level Summary In Walkthrough |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `reviews.high_level_summary_in_walkthrough` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+Include the high level summary in the walkthrough comment.
+
+#### High Level Summary Placeholder
+
+
+
+
+
+
+ Location |
+ Review > Settings > High Level Summary Placeholder |
+
+
+ Default |
+ @coderabbitai summary |
+
+
+
+
+
+
+
+ Field |
+ `reviews.high_level_summary_placeholder` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "@coderabbitai summary" |
+
+
+
+
+
+Placeholder in the PR/MR description that gets replaced with the high level summary.
+
+#### Labeling Instructions
+
+
+
+
+
+
+ Location |
+ Review > Settings > Labeling Instructions |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.labeling_instructions` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+Provide guidelines for suggesting labels for the PR/MR. When specific labels or instructions are provided, only those labels are considered, though previous examples are still used to inform the suggestions. If no such labels are provided, suggestions are based solely on previous PR/MRs.
+
+#### Path Filters
+
+
+
+
+
+
+ Location |
+ Review > Settings > Path Filters |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.path_filters` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+Path filters, if defined, restrict the portions of your repository that CodeRabbit
+uses for context when preparing code reviews.
+
+You can define a list of path specifications, relative to the root of your
+repository, to use as path filters.
+
+Paths can be _exclude paths_, which start with a leading `!` character, or _include
+paths_. If the list of paths contains at least one include path, then CodeRabbit
+includes _only_ files that match the provided paths.
+
+For example, the following list of path filters instructs CodeRabbit to limit its reviews
+only to files found in the `src` top-level directory, but exclude any `.bin` or `.csv`
+files:
+
+```bash
+src/**
+!**/*.{bin,csv}
+```
+
+:::note
+Under the hood, CodeRabbit uses your provided list of path filters as an argument
+to [`git sparse-checkout`](https://git-scm.com/docs/git-sparse-checkout) when preparing its own copy of your repository for code review
+context.
+:::
+
+We strongly recommend defining path filters for any repositories that contain
+a significant amount of generated files or data that has no contextual bearing on code reviews.
+CodeRabbit can work faster if it can ignore files that aren't relevant to pull requests.
+For more information, see [Speed up reviews by adding path filters](https://docs.coderabbit.ai/guides/setup-best-practices#filters).
+
+#### Path Instructions
+
+
+
+
+
+
+ Location |
+ Review > Settings > Path Instructions |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.path_instructions` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+Path instructions are additional sets of instructions, expressed in natural lanaguge,
+that you provide to CodeRabbit for reveiwing certain files in your repository.
+
+You associate each set of instuctions with a file path relative to the root
+of your repository. Your path specification can use extended glob patterns.
+
+The following example defines a set of path instructions for all TypeScript
+and JavaScript files in a reposistory's `src` directory:
+
+
+
+ 
+
+
+```yaml
+path_instructions:
+ - path: src/**/*.{ts,tsx,js}
+ instructions:
+ - Review the React.js/TypeScript/JavaScript code for best practices
+ - Check for common security vulnerabilities such as:
+ - SQL Injection
+ - Insecure dependencies
+ - Sensitive data exposure
+```
+
+
+
+For further examples of path instructions specific to various programming langauges,
+see [the `awesome-coderabbit` public repository](https://github.com/coderabbitai/awesome-coderabbit/tree/main/configs).
+
+#### Poem
+
+
+
+
+
+
+ Location |
+ Review > Settings > Poem |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.poem` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Generate a poem in the walkthrough comment.
+
+#### Profile {#profile}
+
+
+
+
+
+
+ Location |
+ Review > Settings > Profile |
+
+
+ Default |
+ chill |
+
+
+
+
+
+
+
+ Field |
+ `reviews.profile` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "chill" |
+
+
+
+
+
+An overall selector for the level of detail that CodeRabbit should apply to
+its reviews. Valid values are the following:
+
+- **`Chill`**: CodeRabbit provides its usual level of commentary.
+- **`Assertive`**: CodeRabbit provides significantly deeper or more verbose commentary,
+ as much as possible.
+
+The `Chill` profile is the default setting, and is appropriate for most coding
+contexts. The `Assertive` profile mode can get quite nitpicky in some circumstances. We recommend leaving this setting in `Chill`, unless a wordier level of code critique would benefit your team's work.
+
+#### Related Issues
+
+
+
+
+
+
+ Location |
+ Review > Settings > Related Issues |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.related_issues` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Include possibly related issues in the walkthrough.
+
+#### Related PRs
+
+
+
+
+
+
+ Location |
+ Review > Settings > Related PRs |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.related_prs` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Include possibly related pull requests in the walkthrough.
+
+#### Request Changes Workflow
+
+
+
+
+
+
+ Location |
+ Review > Settings > Request Changes Workflow |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `reviews.request_changes_workflow` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+If enabled, then CodeRabbit marks a pull request as approved once all comments
+that CodeRabbit made have been resolved.
+
+Enable this setting if you want to have CodeRabbit's approval count towards
+a minimum number of approvals that your have configured your Git platform
+to require before a pull request can be merged.
+
+#### Review Status
+
+
+
+
+
+
+ Location |
+ Review > Settings > Review Status |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.review_status` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Post review details on each review. Additionally, post a review status when a review is skipped in certain cases.
+
+#### Sequence Diagrams
+
+
+
+
+
+
+ Location |
+ Review > Settings > Sequence Diagrams |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.sequence_diagrams` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Generate sequence diagrams in the walkthrough.
+
+#### Suggested Labels
+
+
+
+
+
+
+ Location |
+ Review > Settings > Suggested Labels |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.suggested_labels` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Suggest labels based on the changes in the pull request in the walkthrough.
+
+#### Suggested Reviewers
+
+
+
+
+
+
+ Location |
+ Review > Settings > Suggested Reviewers |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.suggested_reviewers` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Suggest reviewers based on the changes in the pull request in the walkthrough.
+
+### Automatic Review
+
+#### Enable Automatic Review
+
+
+
+
+
+
+ Location |
+ Review > Auto Review > Automatic Review |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.auto_review.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+If enabled, then CodeRabbit reviews new and updated pull requests automatically. For more information, see [Automatically review pull requests](https://docs.coderabbit.ai/guides/code-review-overview#review).
+
+If disabled, then CodeRabbit performs only reviews that you request manually. For more information on manual review commands, see [Manually request code reviews](/guides/code-review-overview#review).
+
+Disabling this setting also effectively disables all of the other settings listed in this section.
+
+#### Automatic Incremental Review
+
+
+
+
+
+
+ Location |
+ Review > Auto Review > Automatic Incremental Review |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.auto_review.auto_incremental_review` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+If enabled, then CodeRabbit performs automatic reviews of existing pull requests when their associated branches have commits pushed to them. These incremental reviews happen in addition to the initial code review that CodeRabbit generates after the pull request is first created.
+
+For more information on manual review commands, see [Manually request code reviews](/guides/code-review-overview#review).
+
+We recommend leaving this option enabled.
+
+#### Base Branches {#base-branches}
+
+
+
+
+
+
+ Location |
+ Review > Auto Review > Base Branches |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.auto_review.base_branches` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+A list of branches that CodeRabbit performs automatic code reviews on, other
+than the reposiorty's main branch (usually `main` or `master`.)
+
+For example, if you add `staging` as a base branch, then CodeRabbit automatically
+reviews pull requests on both your repository's default branch and its `staging` branch.
+
+#### Drafts
+
+
+
+
+
+
+ Location |
+ Review > Auto Review > Drafts |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `reviews.auto_review.drafts` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+If defined, then CodeRabbit automatically reviews pull requests marked as a draft
+in your Git platform.
+
+#### Ignore Title Keywords
+
+
+
+
+
+
+ Location |
+ Review > Auto Review > Ignore Title Keywords |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.auto_review.ignore_title_keywords` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+Ignore reviewing if the title of the pull request contains any of these keywords (case-insensitive).
+
+#### Labels
+
+
+
+
+
+
+ Location |
+ Review > Auto Review > Labels |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.auto_review.labels` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+If defined with at least one label, then CodeRabbit automatically reviews
+only pull requests that have at least one of the labels in this list.
+
+In this case, you can manually request reviews of pull requests lacking a qualifying label. For more information on manual review commands, see [Manually request code reviews](/guides/code-review-overview#review).
+
+### Finishing Touches
+
+#### Docstrings
+
+
+
+
+
+
+ Location |
+ Review > Finishing Touches > Docstrings |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.finishing_touches.docstrings.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+If enabled, then CodeRabbit can generate inline documentation for functions
+added in a pull request. For more information, see [Docstrings](/finishing-touches/docstrings).
+
+#### Unit Tests
+
+
+
+
+
+
+ Location |
+ Review > Finishing Touches > Unit Tests |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.finishing_touches.unit_tests.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+If enabled, then CodeRabbit can generate unit tests for code
+added in a pull request. For more information, see [Unit Test Generation](/finishing-touches/unit-test-generation).
+
+## Chat
+
+### Auto Reply
+
+
+
+
+
+
+ Location |
+ Chat > Auto Reply |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `chat.auto_reply` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Enable the bot to reply automatically without requiring the user to tag it.
+
+### Integrations
+
+### Jira
+
+
+
+
+
+
+ Location |
+ Chat > Jira |
+
+
+ Default |
+ auto |
+
+
+
+
+
+
+
+ Field |
+ `chat.integrations.jira.usage` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "auto" |
+
+
+
+
+
+Enable the Jira integration for opening issues, etc. 'auto' disables the integration for public repositories.
+
+### Linear
+
+
+
+
+
+
+ Location |
+ Chat > Linear |
+
+
+ Default |
+ auto |
+
+
+
+
+
+
+
+ Field |
+ `chat.integrations.linear.usage` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "auto" |
+
+
+
+
+
+Enable the Linear integration for opening issues, etc. 'auto' disables the integration for public repositories.
+
+## Knowledge Base
+
+### Basic settings
+
+#### Opt Out
+
+
+
+
+
+
+ Location |
+ Knowledge Base > Opt Out |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `knowledge_base.opt_out` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+Disable all knowledge base features that require data retention. If you opt out after opting in, all of your existing knowledge base data will be removed from the system.
+
+#### Pull Requests
+
+
+
+
+
+
+ Location |
+ Knowledge Base > Pull Requests |
+
+
+ Default |
+ auto |
+
+
+
+
+
+
+
+ Field |
+ `knowledge_base.pull_requests.scope` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "auto" |
+
+
+
+
+
+Specify the scope of pull requests to use for the knowledge base. 'local' uses the repository's pull requests, 'global' uses the organization's pull requests, and 'auto' uses repository's pull requests for public repositories and organization's pull requests for private repositories.
+
+#### Web Search
+
+
+
+
+
+
+ Location |
+ Knowledge Base > Web Search |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `knowledge_base.web_search.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Enable the web search integration.
+
+### Issues
+
+
+
+
+
+
+ Location |
+ Knowledge Base > Issues |
+
+
+ Default |
+ auto |
+
+
+
+
+
+
+
+ Field |
+ `knowledge_base.issues.scope` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "auto" |
+
+
+
+
+
+Specify the scope of git platform (GitHub/GitLab) issues to use for the knowledge base. 'local' uses the repository's issues, 'global' uses the organization's issues, and 'auto' uses repository's issues for public repositories and organization's issues for private repositories.
+
+### Jira
+
+#### Enable Jira
+
+
+
+
+
+
+ Location |
+ Knowledge Base > Jira |
+
+
+ Default |
+ auto |
+
+
+
+
+
+
+
+ Field |
+ `knowledge_base.jira.usage` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "auto" |
+
+
+
+
+
+Enable the Jira knowledge base integration. 'auto' disables the integration for public repositories.
+
+#### Project Keys
+
+
+
+
+
+
+ Location |
+ Knowledge Base > Project Keys |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `knowledge_base.jira.project_keys` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+Specify the Jira project keys to use for the knowledge base.
+
+### Learnings
+
+
+
+
+
+
+ Location |
+ Knowledge Base > Learnings |
+
+
+ Default |
+ auto |
+
+
+
+
+
+
+
+ Field |
+ `knowledge_base.learnings.scope` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "auto" |
+
+
+
+
+
+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.
+
+### Linear
+
+#### Enable Linear
+
+
+
+
+
+
+ Location |
+ Knowledge Base > Linear |
+
+
+ Default |
+ auto |
+
+
+
+
+
+
+
+ Field |
+ `knowledge_base.linear.usage` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "auto" |
+
+
+
+
+
+Enable the Linear knowledge base integration. 'auto' disables the integration for public repositories.
+
+#### Team Keys
+
+
+
+
+
+
+ Location |
+ Knowledge Base > Team Keys |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `knowledge_base.linear.team_keys` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+Specify the Linear team keys (identifiers) to use for the knowledge base. E.g. 'ENG'
+
+## Code Generation
+
+### Code Generation Language
+
+
+
+
+
+
+ Location |
+ Code Generation > Language |
+
+
+ Default |
+ en-US |
+
+
+
+
+
+
+
+ Field |
+ `code_generation.docstrings.language` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "en-US" |
+
+
+
+
+
+Set the language for docstrings by using the corresponding ISO language code.
+
+### Docstring Path Instructions
+
+
+
+
+
+
+ Location |
+ Code Generation > Path Instructions |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `code_generation.docstrings.path_instructions` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+Provide additional guidelines for docstring generation based on file paths.
+
+### Unit Test Path Instructions
+
+
+
+
+
+
+ Location |
+ Code Generation > Unit Test Generation |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `code_generation.unit_tests.path_instructions` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+Provide additional guidelines for unit test generation based on file paths.
+
+## Tools
+
+CodeRabbit integrates with various third-party tools for enhanced code analysis.
+
+### actionlint
+
+actionlint is a static checker for GitHub Actions workflow files.
+
+#### Enable actionlint
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable actionlint |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.actionlint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+is a static checker for GitHub Actions workflow files.
+
+### ast-grep
+
+Enable ast-grep | ast-grep is a code analysis tool that helps you to find patterns in your codebase using abstract syntax trees patterns. | v0.38.1
+
+#### Essential Rules
+
+
+
+
+
+
+ Location |
+ Review > Tools > ast-grep > Essential Rules |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.ast-grep.essential_rules` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Use ast-grep essentials package.
+
+#### Packages
+
+
+
+
+
+
+ Location |
+ Review > Tools > ast-grep > Packages |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.ast-grep.packages` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+Predefined packages to be used.
+
+#### Rule Dirs
+
+
+
+
+
+
+ Location |
+ Review > Tools > ast-grep > Rule Dirs |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.ast-grep.rule_dirs` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+List of rules directories.
+
+#### Util Dirs
+
+
+
+
+
+
+ Location |
+ Review > Tools > ast-grep > Util Dirs |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.ast-grep.util_dirs` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+List of utils directories.
+
+### Biome
+
+Biome is a fast formatter, linter, and analyzer for web projects.
+
+#### Enable Biome
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Biome |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.biome.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Biome is a fast formatter, linter, and analyzer for web projects.
+
+### Brakeman
+
+Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications. | v7.0.2
+
+#### Enable Brakeman
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Brakeman |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.brakeman.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications.
+
+### Buf
+
+Buf offers linting for Protobuf files.
+
+#### Enable Buf
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Buf |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.buf.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Buf offers linting for Protobuf files.
+
+### checkmake
+
+checkmake is a linter for Makefiles.
+
+#### Enable checkmake
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable checkmake |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.checkmake.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+checkmake is a linter for Makefiles.
+
+### Checkov
+
+Checkov is a static code analysis tool for infrastructure-as-code files.
+
+#### Enable Checkov
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Checkov |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.checkov.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Checkov is a static code analysis tool for infrastructure-as-code files.
+
+### CircleCI
+
+CircleCI tool is a static checker for CircleCI config files.
+
+#### Enable CircleCI
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable CircleCI |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.circleci.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+CircleCI tool is a static checker for CircleCI config files.
+
+### Clippy
+
+Clippy is a collection of lints to catch common mistakes and improve your Rust code.
+
+#### Enable Clippy
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Clippy |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.clippy.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Clippy is a collection of lints to catch common mistakes and improve your Rust code.
+
+### Cppcheck
+
+Cppcheck is a static code analysis tool for the C and C++ programming languages.
+
+#### Enable Cppcheck
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Cppcheck |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.cppcheck.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Cppcheck is a static code analysis tool for the C and C++ programming languages.
+
+### detekt
+
+Detekt is a static code analysis tool for Kotlin files.
+
+#### Enable detekt
+
+
+
+
+
+
+ Location |
+ Review > Tools > detekt > Enable |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.detekt.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Enable detekt.
+
+#### Config File
+
+
+
+
+
+
+ Location |
+ Review > Tools > detekt > Config File |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.detekt.config_file` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+Optional path to the detekt configuration file relative to the repository.
+
+### dotenv-linter
+
+dotenv-linter is a tool for checking and fixing .env files for problems and best practices
+
+#### Enable dotenv-linter
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable dotenv-linter |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.dotenvLint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+dotenv-linter is a tool for checking and fixing .env files for problems and best practices
+
+### ESLint
+
+ESLint is a static code analysis tool for JavaScript files.
+
+#### Enable ESLint
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable ESLint |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.eslint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+ESLint is a static code analysis tool for JavaScript files.
+
+### Flake8
+
+Flake8 is a static code analysis tool for Python files.
+
+#### Enable Flake8
+
+
+
+
+
+
+ Location |
+ Review > Tools > Flake8 > Enable |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.flake8.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Flake8 is a static code analysis tool for Python files.
+
+### GitHub Checks
+
+GitHub Checks integration configuration.
+
+#### Enable GitHub Checks
+
+
+
+
+
+
+ Location |
+ Review > Tools > GitHub Checks > Enable |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.github-checks.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Enable integration, defaults to true
+
+#### Timeout Ms
+
+
+
+
+
+
+ Location |
+ Review > Tools > GitHub Checks > Timeout Ms |
+
+
+ Default |
+ 90000 |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.github-checks.timeout_ms` |
+
+
+ Datatype |
+ number |
+
+
+ Default |
+ 90000 |
+
+
+
+
+
+Time in milliseconds to wait for all GitHub Checks to conclude.
+
+### Gitleaks
+
+Gitleaks is a secret scanner.
+
+#### Enable Gitleaks
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Gitleaks |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.gitleaks.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Gitleaks is a secret scanner.
+
+### golangci-lint
+
+golangci-lint is a fast linters runner for Go.
+
+#### Enable golangci-lint
+
+
+
+
+
+
+ Location |
+ Review > Tools > golangci-lint > Enable |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.golangci-lint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Enable golangci-lint.
+
+#### Config File
+
+
+
+
+
+
+ Location |
+ Review > Tools > golangci-lint > Config File |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.golangci-lint.config_file` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+Optional path to the golangci-lint configuration file relative to the repository. Useful when the configuration file is named differently than the default '.golangci.yml', '.golangci.yaml', '.golangci.toml', '.golangci.json'.
+
+### Hadolint
+
+Hadolint is a Dockerfile linter.
+
+#### Enable Hadolint
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Hadolint |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.hadolint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Hadolint is a Dockerfile linter.
+
+### HTMLHint
+
+HTMLHint is a static code analysis tool for HTML files.
+
+#### Enable HTMLHint
+
+
+
+
+
+
+ Location |
+ Review > Tools > HTMLHint > Enable |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.htmlhint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Enable HTMLHint.
+
+#### Config File
+
+
+
+
+
+
+ Location |
+ Review > Tools > HTMLHint > Config File |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.htmlhint.config_file` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+Optional path to the HTMLHint configuration file relative to the repository. This is useful when the configuration file is named differently than the default '.htmlhintrc'.
+
+### LanguageTool
+
+LanguageTool is a style and grammar checker for 30+ languages.
+
+#### Disabled Categories
+
+
+
+
+
+
+ Location |
+ Review > Tools > LanguageTool > Disabled Categories |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.languagetool.disabled_categories` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+IDs of categories to be disabled. Note: TYPOS, TYPOGRAPHY, and CASING are always disabled.
+
+#### Disabled Rules
+
+
+
+
+
+
+ Location |
+ Review > Tools > LanguageTool > Disabled Rules |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.languagetool.disabled_rules` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+IDs of rules to be disabled. Note: EN_UNPAIRED_BRACKETS, and EN_UNPAIRED_QUOTES are always disabled.
+
+#### Enable LanguageTool
+
+
+
+
+
+
+ Location |
+ Review > Tools > LanguageTool > Enable |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.languagetool.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Enable LanguageTool
+
+#### Enabled Categories
+
+
+
+
+
+
+ Location |
+ Review > Tools > LanguageTool > Enabled Categories |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.languagetool.enabled_categories` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+IDs of categories to be enabled.
+
+#### Enabled Only
+
+
+
+
+
+
+ Location |
+ Review > Tools > LanguageTool > Enabled Only |
+
+
+ Default |
+ false |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.languagetool.enabled_only` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ false |
+
+
+
+
+
+Only the rules and categories whose IDs are specified with 'enabledRules' or 'enabledCategories' are enabled.
+
+#### Enabled Rules
+
+
+
+
+
+
+ Location |
+ Review > Tools > LanguageTool > Enabled Rules |
+
+
+ Default |
+ _Empty array_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.languagetool.enabled_rules` |
+
+
+ Datatype |
+ array |
+
+
+ Default |
+ [] |
+
+
+
+
+
+IDs of rules to be enabled. The rule won't run unless 'level' is set to a level that activates the rule.
+
+#### Level
+
+
+
+
+
+
+ Location |
+ Review > Tools > LanguageTool > Level |
+
+
+ Default |
+ default |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.languagetool.level` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "default" |
+
+
+
+
+
+If set to 'picky', additional rules will be activated, i.e. rules that you might only find useful when checking formal text.
+
+### Luacheck
+
+Configuration for Lua code linting to ensure code quality
+
+#### Enable Luacheck
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Luacheck |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.luacheck.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Luacheck helps maintain consistent and error-free Lua code
+
+### markdownlint
+
+markdownlint-cli2 is a static analysis tool to enforce standards and consistency for Markdown files.
+
+#### Enable markdownlint
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable markdownlint |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.markdownlint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+markdownlint-cli2 is a static analysis tool to enforce standards and consistency for Markdown files.
+
+### OXC
+
+OXC is a JavaScript/TypeScript linter written in Rust.
+
+#### Enable OXC
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable OXC |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.oxc.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+OXC is a JavaScript/TypeScript linter written in Rust.
+
+### PHPStan
+
+PHPStan is a tool to analyze PHP code.
+
+#### Enable PHPStan
+
+
+
+
+
+
+ Location |
+ Review > Tools > PHPStan > Enable |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.phpstan.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+PHPStan requires [config file](https://phpstan.org/config-reference#config-file) in your repository root. Please ensure that this file contains the `paths:` parameter.
+
+#### Level
+
+
+
+
+
+
+ Location |
+ Review > Tools > PHPStan > Level |
+
+
+ Default |
+ default |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.phpstan.level` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ "default" |
+
+
+
+
+
+Specify the [rule level](https://phpstan.org/user-guide/rule-levels) to run. This setting is ignored if your configuration file already has a `level:` parameter.
+
+### PMD
+
+PMD is an extensible multilanguage static code analyzer. It’s mainly concerned with Java.
+
+#### Enable PMD
+
+
+
+
+
+
+ Location |
+ Review > Tools > PMD > Enable |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.pmd.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Enable PMD.
+
+#### Config File
+
+
+
+
+
+
+ Location |
+ Review > Tools > PMD > Config File |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.pmd.config_file` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+Optional path to the PMD configuration file relative to the repository.
+
+### PHPMD
+
+PHPMD is a static code analysis tool for PHP files.
+
+#### Enable PHPMD
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable PHPMD |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.phpmd.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+PHPMD is a static code analysis tool for PHP files.
+
+### PHPCS
+
+PHPCS is a static code analysis and coding-standard checker for PHP (plus JS/CSS) files.
+
+#### Enable PHPCS
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable PHPCS |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.phpcs.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+PHPCS is a static code analysis tool for PHP, JavaScript and CSS files.
+
+### Prisma Schema Linting
+
+Configuration for Prisma Schema linting to ensure schema file quality
+
+#### Enable Prisma Schema Linting
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Prisma Schema Linting |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.prismaLint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Prisma Schema linting helps maintain consistent and error-free schema files
+
+### Pylint
+
+Pylint is a Python static code analysis tool.
+
+#### Enable Pylint
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Pylint |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.pylint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Pylint is a Python static code analysis tool.
+
+### Regal
+
+Regal is a linter and language server for Rego.
+
+#### Enable Regal
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Regal |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.regal.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Regal is a linter and language server for Rego.
+
+### RuboCop
+
+RuboCop is a Ruby static code analyzer (a.k.a. linter ) and code formatter.
+
+#### Enable RuboCop
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable RuboCop |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.rubocop.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+RuboCop is a Ruby static code analyzer (a.k.a. linter ) and code formatter.
+
+### Ruff
+
+Ruff is a Python linter and code formatter.
+
+#### Enable Ruff
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Ruff |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.ruff.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Ruff is a Python linter and code formatter.
+
+### Semgrep
+
+Semgrep is a static analysis tool designed to scan code for security vulnerabilities and code quality issues.
+
+#### Enable Semgrep
+
+
+
+
+
+
+ Location |
+ Review > Tools > Semgrep > Enable |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.semgrep.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Enable Semgrep.
+
+#### Config File
+
+
+
+
+
+
+ Location |
+ Review > Tools > Semgrep > Config File |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.semgrep.config_file` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+Optional path to the Semgrep configuration file relative to the repository.
+
+### ShellCheck
+
+ShellCheck is a static analysis tool that finds bugs in your shell scripts.
+
+#### Enable ShellCheck
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable ShellCheck |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.shellcheck.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+ShellCheck is a static analysis tool that finds bugs in your shell.
+
+### Shopify Theme Check
+
+Configuration for Shopify Theme Check to ensure theme quality and best practices
+
+#### Enable Shopify Theme Check
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable Shopify Theme Check |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.shopifyThemeCheck.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+A linter for Shopify themes that helps you follow Shopify theme & Liquid best practices
+
+### SQLFluff
+
+SQLFluff is an open source, dialect-flexible and configurable SQL linter.
+
+#### Enable SQLFluff
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable SQLFluff |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.sqlfluff.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+SQLFluff is an open source, dialect-flexible and configurable SQL linter.
+
+### SwiftLint
+
+SwiftLint integration configuration object.
+
+#### Enable SwiftLint
+
+
+
+
+
+
+ Location |
+ Review > Tools > SwiftLint > Enable |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.swiftlint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+Enable SwiftLint.
+
+#### Config File
+
+
+
+
+
+
+ Location |
+ Review > Tools > SwiftLint > Config File |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.swiftlint.config_file` |
+
+
+ Datatype |
+ string |
+
+
+ Default |
+ _No default_ |
+
+
+
+
+
+Optional path to the SwiftLint configuration file relative to the repository. This is useful when the configuration file is named differently than the default '.swiftlint.yml' or '.swiftlint.yaml'.
+
+### YAMLlint
+
+YAMLlint is a linter for YAML files.
+
+#### Enable YAMLlint
+
+
+
+
+
+
+ Location |
+ Review > Tools > Enable YAMLlint |
+
+
+ Default |
+ true |
+
+
+
+
+
+
+
+ Field |
+ `reviews.tools.yamllint.enabled` |
+
+
+ Datatype |
+ boolean |
+
+
+ Default |
+ true |
+
+
+
+
+
+YAMLlint is a linter for YAML files.
diff --git a/docs/reference/yaml-template.md b/docs/reference/yaml-template.md
new file mode 100644
index 00000000..9fac39e2
--- /dev/null
+++ b/docs/reference/yaml-template.md
@@ -0,0 +1,192 @@
+---
+title: Configuration file template
+---
+
+You can use the following template as a basis for a new `.coderabbit.yaml` configuration file at the root level of your repository.
+
+If used as-is as a `.coderabbit.yaml` file, then this template sets the default, recommended values for [all CodeRabbit repository options](/reference/configuration). You can then update the values to best suit your team's code-review needs.
+
+For more information about using a `.coderabbit.yaml` file, see [Add a configuration file](/getting-started/configure-coderabbit).
+
+For a general overview of CodeRabbit configuration, see [Configure CodeRabbit](/guides/configuration-overview).
+
+```yaml
+# yaml-language-server: $schema=https://storage.googleapis.com/coderabbit_public_assets/schema.v2.json
+
+language: en-US
+tone_instructions: ""
+early_access: true
+enable_free_tier: true
+reviews:
+ profile: chill
+ request_changes_workflow: false
+ high_level_summary: true
+ high_level_summary_placeholder: "@coderabbitai summary"
+ high_level_summary_in_walkthrough: false
+ auto_title_placeholder: "@coderabbitai"
+ auto_title_instructions: ""
+ review_status: true
+ commit_status: true
+ fail_commit_status: false
+ collapse_walkthrough: false
+ changed_files_summary: true
+ sequence_diagrams: true
+ assess_linked_issues: true
+ related_issues: true
+ related_prs: true
+ suggested_labels: true
+ auto_apply_labels: false
+ suggested_reviewers: true
+ auto_assign_reviewers: false
+ poem: true
+ labeling_instructions:
+ - label: ""
+ instructions: ""
+ path_filters: []
+ path_instructions:
+ - path: ""
+ instructions: ""
+ abort_on_close: true
+ disable_cache: false
+ auto_review:
+ enabled: true
+ auto_incremental_review: true
+ ignore_title_keywords: []
+ labels: []
+ drafts: false
+ base_branches: []
+ finishing_touches:
+ docstrings:
+ enabled: true
+ unit_tests:
+ enabled: true
+ tools:
+ ast-grep:
+ rule_dirs: []
+ util_dirs: []
+ essential_rules: true
+ packages: []
+ shellcheck:
+ enabled: true
+ ruff:
+ enabled: true
+ markdownlint:
+ enabled: true
+ github-checks:
+ enabled: true
+ timeout_ms: 90000
+ languagetool:
+ enabled: true
+ enabled_rules: []
+ disabled_rules: []
+ enabled_categories: []
+ disabled_categories: []
+ enabled_only: false
+ level: default
+ biome:
+ enabled: true
+ hadolint:
+ enabled: true
+ swiftlint:
+ enabled: true
+ config_file: ""
+ phpstan:
+ enabled: true
+ level: default
+ golangci-lint:
+ enabled: true
+ config_file: ""
+ yamllint:
+ enabled: true
+ gitleaks:
+ enabled: true
+ checkov:
+ enabled: true
+ detekt:
+ enabled: true
+ config_file: ""
+ eslint:
+ enabled: true
+ flake8:
+ enabled: true
+ rubocop:
+ enabled: true
+ buf:
+ enabled: true
+ regal:
+ enabled: true
+ actionlint:
+ enabled: true
+ pmd:
+ enabled: true
+ config_file: ""
+ phpmd:
+ enabled: true
+ phpcs:
+ enabled: true
+ cppcheck:
+ enabled: true
+ semgrep:
+ enabled: true
+ config_file: ""
+ circleci:
+ enabled: true
+ clippy:
+ enabled: true
+ sqlfluff:
+ enabled: true
+ prismaLint:
+ enabled: true
+ pylint:
+ enabled: true
+ oxc:
+ enabled: true
+ shopifyThemeCheck:
+ enabled: true
+ luacheck:
+ enabled: true
+ brakeman:
+ enabled: true
+ dotenvLint:
+ enabled: true
+ htmlhint:
+ enabled: true
+ checkmake:
+ enabled: true
+chat:
+ auto_reply: true
+ integrations:
+ jira:
+ usage: auto
+ linear:
+ usage: auto
+knowledge_base:
+ opt_out: false
+ web_search:
+ enabled: true
+ code_guidelines:
+ enabled: true
+ filePatterns: []
+ learnings:
+ scope: auto
+ issues:
+ scope: auto
+ jira:
+ usage: auto
+ project_keys: []
+ linear:
+ usage: auto
+ team_keys: []
+ pull_requests:
+ scope: auto
+code_generation:
+ docstrings:
+ language: en-US
+ path_instructions:
+ - path: ""
+ instructions: ""
+ unit_tests:
+ path_instructions:
+ - path: ""
+ instructions: ""
+```
diff --git a/docs/tools/flake8.md b/docs/tools/flake8.md
new file mode 100644
index 00000000..a1a18881
--- /dev/null
+++ b/docs/tools/flake8.md
@@ -0,0 +1,46 @@
+---
+title: Flake8
+sidebar_label: Flake8
+description: CodeRabbit's guide to Flake8.
+---
+
+```mdx-code-block
+import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
+
+
+```
+
+[Flake8](https://flake8.pycqa.org/) is a Python linting utility that wraps PyFlakes, pycodestyle, and Mccabe to check your Python or Jupiter Notebook code for style and logical errors.
+
+## Supported Files
+
+Flake8 will run on files with the following extensions:
+
+- `*.py`
+- `*.ipynb` (using nbqa)
+
+## Configuration
+
+Flake8 supports the following config files:
+
+- `.flake8`
+
+CodeRabbit will not run Flake8 if no config file is found.
+
+## Features
+
+Flake8 can detect many issues such as:
+
+- Style violations (PEP 8)
+- Logical errors and unused imports
+- Code complexity issues
+- Syntax errors
+- And many more
+
+## Links
+
+- [Flake8 Official Website](https://flake8.pycqa.org/)
+- [Flake8 GitHub Repository](https://github.com/pycqa/flake8)
+- [Flake8 Documentation](https://flake8.pycqa.org/en/latest/)
+- [Flake8 Configuration](https://flake8.pycqa.org/en/latest/user/configuration.html)
+- [nbqa Documentation](https://github.com/nbQA-dev/nbQA)
diff --git a/docs/tools/list.md b/docs/tools/list.md
index 6092e082..f81880a3 100644
--- a/docs/tools/list.md
+++ b/docs/tools/list.md
@@ -32,11 +32,12 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
| Lua | [Luacheck][Luacheck] | Code Quality |
| Makefile | [Checkmake][Checkmake] | Code Quality |
| Markdown | [markdownlint][markdownlint], [LanguageTool][LanguageTool] | Code Quality, Grammar Checking |
-| PHP | [PHPStan][PHPStan] | Code Quality |
+| PHP | [PHPStan][PHPStan], [PHPMD][PHPMD], [PHPCS][PHPCS] | Code Quality |
| Plaintext | [LanguageTool][LanguageTool] | Grammar and Spell Checking |
| Java | [PMD][PMD] | Code Quality |
| Protobuf | [Buf][Buf] | Code Quality |
-| Python | [Ruff][Ruff], [Pylint][Pylint] | Code Quality |
+| Python | [Ruff][Ruff], [Pylint][Pylint], [Flake8][Flake8] | Code Quality |
+| Jupyter Notebooks | [Ruff][Ruff], [Pylint][Pylint], [Flake8][Flake8] | Code Quality |
| Regal | [Regal][Regal] | Code Quality |
| Ruby | [RuboCop][RuboCop], [Brakeman][Brakeman] | Code Quality, Code Security |
| Rust | [Clippy][Clippy] | Code Quality |
@@ -84,3 +85,6 @@ For an overview of how CodeRabbit uses these tools when generating code reviews,
[DotenvLinter]: /tools/dotenv.md
[HTMLHint]: /tools/htmlhint.md
[Checkmake]: /tools/checkmake.md
+[PHPMD]: /tools/phpmd.md
+[PHPCS]: /tools/phpcs.md
+[Flake8]: /tools/flake8.md
diff --git a/docs/tools/phpcs.md b/docs/tools/phpcs.md
new file mode 100644
index 00000000..468e23dc
--- /dev/null
+++ b/docs/tools/phpcs.md
@@ -0,0 +1,56 @@
+---
+title: PHPCS
+sidebar_label: PHPCS
+description: CodeRabbit's guide to PHPCS.
+---
+
+```mdx-code-block
+import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
+
+
+```
+
+[PHPCS](https://github.com/squizlabs/PHP_CodeSniffer) (PHP CodeSniffer) is a development tool that ensures your code conforms to a coding standard. It is an essential tool for any development team that wants to ensure their code is consistent and follows best practices.
+
+## Files
+
+PHPCS will run on files with the following extensions:
+
+- `.php`
+
+## Features
+
+PHPCS can detect and fix various coding standard violations including:
+
+- **PSR Standards**: Enforces PSR-1, PSR-2, PSR-12, and other coding standards
+- **Custom Standards**: Supports custom coding standards and rules
+- **Auto-fixing**: Can automatically fix many coding standard violations
+- **Custom Rules**: Allows creation of custom sniff rules
+- **Multiple Standards**: Can enforce multiple coding standards simultaneously
+
+## Popular Standards
+
+PHPCS supports many coding standards including:
+
+- **PSR-1**: Basic Coding Standard
+- **PSR-2**: Coding Style Guide
+- **PSR-12**: Extended Coding Style
+- **Squiz**: Squiz Labs coding standard
+- **PEAR**: PEAR coding standard
+- **Zend**: Zend Framework coding standard
+
+## Configuration
+
+PHPCS requires a configuration file to run. CodeRabbit will only run PHPCS if one of the following configuration files is found:
+
+- `phpcs.xml` - XML configuration file
+- `phpcs.xml.dist` - Distributed XML configuration file
+
+CodeRabbit will not run PHPCS if no configuration file is found.
+
+## Links
+
+- [PHPCS GitHub Repository](https://github.com/squizlabs/PHP_CodeSniffer)
+- [PHPCS Documentation](https://github.com/squizlabs/PHP_CodeSniffer/wiki)
+- [Available Coding Standards](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Coding-Standards)
+- [Creating Custom Standards](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Coding-Standards#creating-a-coding-standard)
diff --git a/docs/tools/phpmd.md b/docs/tools/phpmd.md
new file mode 100644
index 00000000..84df5b11
--- /dev/null
+++ b/docs/tools/phpmd.md
@@ -0,0 +1,44 @@
+---
+title: PHPMD
+sidebar_label: PHPMD
+description: CodeRabbit's guide to PHPMD.
+---
+
+```mdx-code-block
+import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
+
+
+```
+
+[PHPMD](https://phpmd.org/) (PHP Mess Detector) is a static analysis tool for PHP that detects potential problems in your code such as possible bugs, suboptimal code, overcomplicated expressions, and unused parameters, variables, methods, and classes.
+
+## Files
+
+PHPMD will run on files with the following extensions:
+
+- `.php`
+
+## Features
+
+PHPMD can detect various code quality issues including:
+
+- **Clean Code Rules**: Detects code smells and violations of clean code principles
+- **Controversial Rules**: Identifies potentially problematic code patterns
+- **Design Rules**: Finds design-related issues and architectural problems
+- **Naming Rules**: Checks for naming convention violations
+- **Unused Code Rules**: Detects unused variables, parameters, methods, and classes
+- **Size Rules**: Identifies overly complex methods and classes
+
+### Review Mode Behavior
+
+CodeRabbit's review mode affects which PHPMD rules are applied:
+
+- **Chill Mode**: Only checks for unused code (`unusedcode` rule set)
+- **Nitpick Mode**: Checks all rule sets including clean code, code size, controversial rules, design issues, naming conventions, and unused code (`cleancode,codesize,controversial,design,naming,unusedcode`)
+
+## Links
+
+- [PHPMD Official Website](https://phpmd.org/)
+- [PHPMD GitHub Repository](https://github.com/phpmd/phpmd)
+- [PHPMD Documentation](https://phpmd.org/documentation/index.html)
+- [Available Rules](https://phpmd.org/rules/index.html)
diff --git a/docs/tools/pylint.md b/docs/tools/pylint.md
index f6793106..6c45484d 100644
--- a/docs/tools/pylint.md
+++ b/docs/tools/pylint.md
@@ -10,13 +10,25 @@ import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
```
-[Pylint](https://pylint.pycqa.org/) is a static code analysis tool for Python. It checks your Python code for errors, enforces a coding standard, and looks for code smells.
+[Pylint](https://pylint.pycqa.org/) is a static code analysis tool for Python or Jupiter Notebooks. It checks your Python code for errors, enforces a coding standard, and looks for code smells.
## Supported Files
Pylint will run on files with the following extensions:
- `*.py`
+- `.ipynb` (using nbqa)
+
+## Configuration
+
+Pylint supports the following config files:
+
+- `.pylintrc`
+- `pylintrc`
+- `.pylintrc.toml`
+- `pylintrc.toml`
+
+CodeRabbit will not run Pylint if no config file is found.
## Features
@@ -35,3 +47,4 @@ Pylint can detect many issues such as:
- [Pylint GitHub Repository](https://github.com/pylint-dev/pylint)
- [Pylint Documentation](https://pylint.pycqa.org/en/latest/)
- [Message Control](https://pylint.pycqa.org/en/latest/user_guide/message-control.html)
+- [nbqa Documentation](https://github.com/nbQA-dev/nbQA)
diff --git a/docs/tools/ruff.md b/docs/tools/ruff.md
index fe897d7b..97ebacde 100644
--- a/docs/tools/ruff.md
+++ b/docs/tools/ruff.md
@@ -10,13 +10,14 @@ import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
```
-[Ruff](https://docs.astral.sh/ruff/) is a linter for Python.
+[Ruff](https://docs.astral.sh/ruff/) is a linter for Python or Jupiter Notebooks.
## Files
Ruff will run on files with the following extensions:
- `.py`
+- `.ipynb` (using nbqa)
## Configuration
@@ -31,3 +32,4 @@ CodeRabbit will use the default settings based on the profile selected if no con
## Links
- [Ruff Configuration](https://docs.astral.sh/ruff/configuration/)
+- [nbqa Documentation](https://github.com/nbQA-dev/nbQA)
diff --git a/sidebars.ts b/sidebars.ts
index 3d56f2b7..3cc53ff0 100644
--- a/sidebars.ts
+++ b/sidebars.ts
@@ -79,7 +79,11 @@ const sidebars: SidebarsConfig = {
collapsed: true,
label: "Configure CodeRabbit",
items: [
+ "guides/configuration-overview",
+ "guides/organization-settings",
+ "guides/repository-settings",
"getting-started/configure-coderabbit",
+ "guides/initial-configuration",
"integrations/knowledge-base",
"guides/review-instructions",
"tools/tools",
@@ -162,6 +166,8 @@ const sidebars: SidebarsConfig = {
href: "https://api.coderabbit.ai/api/swagger/",
},
"reference/review-commands",
+ "reference/configuration",
+ "reference/yaml-template",
{
type: "category",
label: "Supported tools",
@@ -176,6 +182,7 @@ const sidebars: SidebarsConfig = {
"tools/cppcheck",
"tools/detekt",
"tools/eslint",
+ "tools/flake8",
"tools/gitleaks",
"tools/golangci-lint",
"tools/hadolint",
@@ -183,6 +190,8 @@ const sidebars: SidebarsConfig = {
"tools/luacheck",
"tools/markdownlint",
"tools/oxlint",
+ "tools/phpcs",
+ "tools/phpmd",
"tools/phpstan",
"tools/pipeline-remediation",
"tools/pmd",
diff --git a/src/css/custom.css b/src/css/custom.css
index 933d51d0..7365089e 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -39,6 +39,8 @@
--ifm-navbar-height: 5rem;
--ifm-font-family-base: "Poppins", "Work Sans", sans-serif;
--ifm-background-color-primary: #f6f6f1;
+ --ifm-background-color-secondary: #e8e8e8;
+ --ifm-breadcrumb-item-background-active: #ffe9e2;
}
[data-theme="dark"] {
@@ -51,6 +53,8 @@
--ifm-color-primary-lightest: #171717;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
--ifm-background-color-primary: #171717;
+ --ifm-background-color-secondary: #232323;
+ --ifm-breadcrumb-item-background-active: #3f322e;
}
#__docusaurus {
@@ -102,6 +106,8 @@ a[docid="docs"] > svg {
overflow: hidden;
max-width: 100%;
background: #000;
+ border-radius: 1rem;
+ border: 4px solid var(--ifm-background-color-secondary);
}
.video-container iframe {
@@ -298,3 +304,34 @@ a[docid="docs"] > svg {
.pagination-nav {
display: none;
}
+/* ===== MARKDOWN STYLES ===== */
+.theme-doc-markdown.markdown {
+ line-height: 1.8rem;
+}
+/* ===== BREADCRUMB STYLES ===== */
+
+.breadcrumbs {
+ display: flex;
+ gap: 0.5rem;
+ overflow-x: auto;
+ white-space: nowrap;
+}
+.breadcrumbs::-webkit-scrollbar {
+ display: none;
+}
+.breadcrumbs__item {
+ display: flex;
+ align-items: center;
+ white-space: nowrap;
+ gap: 1rem;
+}
+.breadcrumbs__link {
+ transition: color 0.2s ease;
+ background-color: var(--ifm-background-color-secondary);
+}
+
+.breadcrumbs__item--active .breadcrumbs__link {
+ font-weight: 600;
+ cursor: default;
+ background-color: var(--ifm-breadcrumb-item-background-active);
+}
diff --git a/static/img/guides/score-card-report-result.png b/static/img/guides/score-card-report-result.png
new file mode 100644
index 00000000..15b51539
Binary files /dev/null and b/static/img/guides/score-card-report-result.png differ
diff --git a/static/img/guides/score-card-result-comment.png b/static/img/guides/score-card-result-comment.png
new file mode 100644
index 00000000..1ea43248
Binary files /dev/null and b/static/img/guides/score-card-result-comment.png differ
diff --git a/static/img/guides/score-card-trigger-comment.png b/static/img/guides/score-card-trigger-comment.png
new file mode 100644
index 00000000..2f690948
Binary files /dev/null and b/static/img/guides/score-card-trigger-comment.png differ
diff --git a/static/img/guides/where-score-report-prompt-go.png b/static/img/guides/where-score-report-prompt-go.png
new file mode 100644
index 00000000..3b26a1f1
Binary files /dev/null and b/static/img/guides/where-score-report-prompt-go.png differ
diff --git a/static/img/reference/path-instructions.png b/static/img/reference/path-instructions.png
new file mode 100644
index 00000000..adcb5884
Binary files /dev/null and b/static/img/reference/path-instructions.png differ
diff --git a/static/schema/schema.v2.json b/static/schema/schema.v2.json
index e7452e64..4dcaeba6 100644
--- a/static/schema/schema.v2.json
+++ b/static/schema/schema.v2.json
@@ -466,7 +466,7 @@
"maximum": 900000,
"minimum": 0,
"default": 90000,
- "description": "Time in milliseconds to wait for all GitHub Checks to conclude."
+ "description": "Time in milliseconds to wait for all GitHub Checks to conclude. Default 90 seconds, max 15 minutes (900000ms)."
}
},
"additionalProperties": false,
@@ -604,6 +604,32 @@
"default": {},
"description": "PHPStan is a tool to analyze PHP code."
},
+ "phpmd": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "default": true,
+ "description": "Enable PHPMD | PHPMD is a tool to find potential problems in PHP code. | v2.15.0"
+ }
+ },
+ "additionalProperties": false,
+ "default": {},
+ "description": "PHPMD is a tool to find potential problems in PHP code."
+ },
+ "phpcs": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "default": true,
+ "description": "Enable PHP CodeSniffer | PHP CodeSniffer is a PHP linter and coding standard checker. | v3.7.2"
+ }
+ },
+ "additionalProperties": false,
+ "default": {},
+ "description": "PHP CodeSniffer is a PHP linter and coding standard checker."
+ },
"golangci-lint": {
"type": "object",
"properties": {
@@ -697,10 +723,6 @@
"type": "boolean",
"default": true,
"description": "Enable Flake8 | Flake8 is a Python linter that wraps PyFlakes, pycodestyle and Ned Batchelder's McCabe script. | v7.2.0"
- },
- "config_file": {
- "type": "string",
- "description": "Optional path to the Flake8 configuration file relative to the repository. This is useful when the configuration file is named differently than the default '.flake8' or 'setup.cfg'."
}
},
"additionalProperties": false,
@@ -943,10 +965,6 @@
"type": "boolean",
"default": true,
"description": "Enable HTMLHint | HTMLHint is a static code analysis tool for HTML files. | Enable HTMLHint integration. | v1.5.0"
- },
- "config_file": {
- "type": "string",
- "description": "Optional path to the HTMLHint configuration file relative to the repository. This is useful when the configuration file is named differently than the default '.htmlhintrc'."
}
},
"additionalProperties": false,
@@ -1047,7 +1065,7 @@
"enabled": {
"type": "boolean",
"default": true,
- "description": "Enabled | Enable CodeRabbit to enforce your organisation's coding standards during reviews."
+ "description": "Enabled | Enable CodeRabbit to enforce your organization's coding standards during reviews."
},
"filePatterns": {
"type": "array",
@@ -1055,12 +1073,12 @@
"type": "string"
},
"default": [],
- "description": "File Patterns | Specify files for your coding guideline documents in this section. CodeRabbit will scan these files to understand your team's standards and apply them during code reviews. Multiple files supported. File names are case-sensitive. Common files like: (**/.cursorrules, .github/copilot-instructions.md, **/CLAUDE.md, **/.cursor/rules/*, **/.windsurfrules, **/.clinerules/*, **/.rules/*) are included by default."
+ "description": "File Patterns | Specify files for your coding guideline documents in this section. CodeRabbit will scan these files to understand your team's standards and apply them during code reviews. Multiple files supported. File names are case-sensitive. Common files like: (**/.cursorrules, .github/copilot-instructions.md, **/CLAUDE.md, **/GEMINI.md, **/.cursor/rules/*, **/.windsurfrules, **/.clinerules/*, **/.rules/*, **/AGENT.md) are included by default."
}
},
"additionalProperties": false,
"default": {},
- "description": "CodeRabbit will analyse and learn from your organisation's code guidelines, which you can mention in the file patterns section. These guidelines will then be used to conduct thorough code reviews."
+ "description": "CodeRabbit will analyse and learn from your organization's code guidelines, which you can mention in the file patterns section. These guidelines will then be used to conduct thorough code reviews."
},
"learnings": {
"type": "object",