Skip to content

Commit 55baf97

Browse files
authored
Update yaml.md (#642)
1 parent 493f84a commit 55baf97

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

website/reference/yaml.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ To disable this behavior, use [`--no-ignore`](/reference/cli.html#scan) in CLI.
237237
`ignores` is a rule-wise configuration that only filters files that are not ignored by the CLI.
238238
:::
239239

240+
:::warning Don't add `./`
241+
Be sure to remove `./` to the beginning of your rules. ast-grep will not recognize the paths if you add `./`.
242+
:::
243+
244+
240245
## Other
241246

242247
### `url`
@@ -263,4 +268,4 @@ Example:
263268
```yaml
264269
metadata:
265270
extraField: 'Extra information for other usages'
266-
```
271+
```

0 commit comments

Comments
 (0)