Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commit8042ab2

Browse files
committed
ast-grep update
1 parent09a22dd commit8042ab2

File tree

1 file changed

+41
-33
lines changed

1 file changed

+41
-33
lines changed

‎docs/guides/configure-coderabbit.md‎

Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ YAML settings:
9191
```
9292

9393
- **`auto_review`**: Manages settings for automated code reviews, such as:
94+
9495
- **`enabled`**: Automated code review (default: `true`).
9596
- **`ignore_title_keywords`**: Review will be ignored if a pull request
9697
title contains one of the list of keywords (case-insensitive). Example:
@@ -102,13 +103,14 @@ YAML settings:
102103
- **`base_branches`**: A list of base branches for which the reviews will
103104
trigger, apart from the default branch. Accepts regex pattern. Example:
104105

105-
```yaml
106-
base_branches:
107-
- "develop"
108-
- "feat/.*"
109-
```
106+
```yaml
107+
base_branches:
108+
- "develop"
109+
- "feat/.*"
110+
```
110111

111112
- **`tools`**: Configurations for the tools used in the review.
113+
112114
- **`ast-grep`**: Configurations for the `ast-grep` tool.
113115
- **`rule_dirs`**: The directory name where the custom `ast-grep` rules
114116
are stored.
@@ -118,47 +120,53 @@ YAML settings:
118120
projects. Essentially, a package is a collection of `ast-grep` rules.
119121
- **`github-checks`**: Configuration for GitHub Checks integration.
120122
- **`enabled`**: Enable integration, defaults to true.
121-
- **`timeout_ms`**: Time in milliseconds to wait for all GitHub Checks to conclude, defaults to 90000 (1.5 minutes), maximum is 300000 (5 minutes), minimum is 0 (no timeout).
123+
- **`timeout_ms`**: Time in milliseconds to wait for all GitHub Checks to
124+
conclude, defaults to 90000 (1.5 minutes), maximum is 300000 (5
125+
minutes), minimum is 0 (no timeout).
122126
- **`markdownlint`**: Configuration for `markdownlint` integration.
123127
- **`enabled`**: Enable integration, defaults to true.
124128
- **`ruff`**: Configuration for `ruff` integration.
125129
- **`enabled`**: Enable integration, defaults to true.
126130
- **`shellcheck`**: Configuration for `shellcheck` integration.
127131
- **`enabled`**: Enable integration, defaults to true.
128132
- **`languagetool`**: Configuration for `languagetool` integration.
133+
129134
- **`enabled`**: Enable integration, defaults to true.
130-
- **`level`**: The level of the rule. Can be one `default` or `picky`. If set to `picky`, additional rules will be activated, i.e. rules that you might only find useful when checking formal text.
131-
- **`enabled_rules`**: IDs of rules to be enabled. The rule won't run unless 'level' is set to a level that activates the rule.
135+
- **`level`**: The level of the rule. Can be one `default` or `picky`. If
136+
set to `picky`, additional rules will be activated, i.e. rules that you
137+
might only find useful when checking formal text.
138+
- **`enabled_rules`**: IDs of rules to be enabled. The rule won't run
139+
unless 'level' is set to a level that activates the rule.
132140
- **`disabled_rules`**: IDs of rules to be disabled.
133141
- **`enabled_categories`**: IDs of categories to be enabled.
134142
- **`disabled_categories`**: IDs of categories to be disabled.
135-
- **`enabled_only`**: Only the rules and categories whose IDs are specified with `enabled_rules` or `enabled_categories` are enabled.
143+
- **`enabled_only`**: Only the rules and categories whose IDs are
144+
specified with `enabled_rules` or `enabled_categories` are enabled.
136145

137146
```yaml
138-
ast-grep:
139-
rule_dirs:
140-
- "rules"
141-
util_dirs:
142-
- "utils"
143-
packages:
144-
- "ast-grep-essentials"
145-
- "my-awesome-org/my-awesome-package" # public GitHub repository that contains ast-grep rules
146-
github-checks:
147-
enabled: true
148-
timeout_ms: 90000
149-
markdownlint:
150-
enabled: true
151-
ruff:
152-
enabled: true
153-
shellcheck:
154-
enabled: true
155-
languagetool:
156-
enabled: true
157-
enabled_only: false
158-
level: default
159-
enabled_categories:
160-
- "TON_ACADEMIC"
161-
- "CASING"
147+
ast-grep:
148+
rule_dirs:
149+
- "rules"
150+
util_dirs:
151+
- "utils"
152+
packages:
153+
- "my-awesome-org/my-awesome-package" # public GitHub repository that contains ast-grep rules
154+
github-checks:
155+
enabled: true
156+
timeout_ms: 90000
157+
markdownlint:
158+
enabled: true
159+
ruff:
160+
enabled: true
161+
shellcheck:
162+
enabled: true
163+
languagetool:
164+
enabled: true
165+
enabled_only: false
166+
level: default
167+
enabled_categories:
168+
- "TON_ACADEMIC"
169+
- "CASING"
162170
```
163171

164172
5. **`chat`**:Defines the behavior of CodeRabbit's bot in conversations.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp