Skip to content

Commit 181d07f

Browse files
doc: add --include-off option
1 parent 0b8dab1 commit 181d07f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

website/reference/cli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ ast-grep test [OPTIONS]
107107
| | --skip-snapshot-tests |Only check if the test code is valid, without checking rule output. Turn it on when you want to ignore the output of rules|
108108
| -U| --update-all |Update the content of all snapshots that have changed in test.|
109109
| -f| --filter |Filter rule test cases to execute using a glob pattern.|
110+
| | --include-off | Include `severity:off` rules in test
110111
| -i| --interactive |start an interactive review to update snapshots selectively.|
111112
| -h| --help |Print help.|
112113

website/reference/cli/test.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ Start an interactive review to update snapshots selectively
4141

4242
Filter rule test cases to execute using a glob pattern
4343

44+
### `--include-off`
45+
Include `severity:off` rules in test
46+
47+
ast-grep will not run rules with `severity: off` by default. This option will include those rules in the test.
48+
4449
### `-h, --help`
4550

4651
Print help

0 commit comments

Comments
 (0)