Skip to content

Commit 00e15a3

Browse files
petrisorcoderabbitharjotgill
authored andcommitted
Change ast-grep naming
1 parent d0bd7ba commit 00e15a3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/guides/prompt-customization.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ Descriptive test names are used to clearly convey the intent of each test.
5252
## Abstract Syntax Tree (AST) instructions
5353

5454
:::note
55-
**Deep dive into AST patterns and AST-Grep rules**
55+
**Deep dive into AST patterns and ast-grep rules**
5656
- AST patterns [wikipedia](https://en.wikipedia.org/wiki/Abstract_syntax_tree)
57-
- AST-grep [official documentation](https://ast-grep.github.io/guide/rule-config.html) for detailed guides.
57+
- ast-grep [official documentation](https://ast-grep.github.io/guide/rule-config.html) for detailed guides.
5858
:::
5959

60-
This section explains how to add custom code review instructions using AST-Grep rules. AST-Grep is a tool used for searching code using abstract syntax trees (AST) patterns.
60+
This section explains how to add custom code review instructions using ast-grep rules. ast-grep is a tool used for searching code using abstract syntax trees (AST) patterns.
6161

62-
By default, you can add AST-Grep rules by following these steps:
62+
By default, you can add ast-grep rules by following these steps:
6363
1. Create a folder that keeps all the ast-grep rules in your project directory.
64-
2. Add individual `.yaml` files for each AST-Grep rule within the newly created folder.
65-
3. Ensure that each `.yaml` file contains the necessary AST-Grep rule configurations.
64+
2. Add individual `.yaml` files for each ast-grep rule within the newly created folder.
65+
3. Ensure that each `.yaml` file contains the necessary ast-grep rule configurations.
6666
4. Ensure that all rules contains a `message` property, that will be used in the review process.
6767
5. Add the rules folder to the `.coderabbit.yml` file under `tools.ast-grep` configuration.
6868

@@ -236,7 +236,7 @@ rule:
236236

237237
### Multiple Languages Support
238238

239-
CodeRabbit supports multiple programming languages for defining AST-Grep rules.
239+
CodeRabbit supports multiple programming languages for defining ast-grep rules.
240240

241241
- JavaScript
242242
- Typescript
@@ -248,7 +248,7 @@ CodeRabbit supports multiple programming languages for defining AST-Grep rules.
248248
- Python
249249
- C
250250

251-
Below are examples of AST-Grep rules in different languages:
251+
Below are examples of ast-grep rules in different languages:
252252

253253
#### JavaScript
254254
**Importing files without an extension is not allowed**

0 commit comments

Comments
 (0)