You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/reference/cli/new.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -72,10 +72,8 @@ Accept all default options without interactive input during creation.
72
72
73
73
You need to provide all required arguments via command line if this flag is true. Please see the command description for the what arguments are required.
74
74
75
-
### `-b, --base-dir <BASE_DIR>`
76
-
Create new project/items in the folder specified by this argument
77
-
78
-
[default: .]
75
+
### `-c, --config <CONFIG_FILE>`
76
+
Path to ast-grep root config, default is sgconfig.yml
Copy file name to clipboardExpand all lines: website/reference/cli/scan.md
+52Lines changed: 52 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,29 @@ Currently, only GitHub is supported.
121
121
122
122
[possible values: github]
123
123
124
+
## Context Options
125
+
126
+
### `-A, --after <NUM>`
127
+
Show NUM lines after each match.
128
+
129
+
It conflicts with both the -C/--context flag.
130
+
131
+
[default: 0]
132
+
133
+
### `-B, --before <NUM>`
134
+
Show NUM lines before each match.
135
+
136
+
It conflicts with both the -C/--context flag.
137
+
138
+
[default: 0]
139
+
140
+
### `-C, --context <NUM>`
141
+
Show NUM lines around each match.
142
+
143
+
This is equivalent to providing both the -B/--before and -A/--after flags with the same value. It conflicts with both the -B/--before and -A/--after flags.
144
+
145
+
[default: 0]
146
+
124
147
## Style Options
125
148
126
149
### `--color <WHEN>`
@@ -144,5 +167,34 @@ Possible values:
144
167
- medium: Output a condensed diagnostic, with a line number, severity, message and notes (if any)
145
168
- short: Output a short diagnostic, with a line number, severity, and message
146
169
170
+
## Rule Options
171
+
172
+
These rule option flags set the specified RULE_ID's severity to a specific level. You can specify multiple rules by using the flag multiple times, e.g., `--error=RULE_1 --error=RULE_2`. If no RULE_ID is provided, all rules will be set to the specified level, e.g., `--error`. Note, these flags must use `=` to specify its value.
173
+
174
+
### `--error[=<RULE_ID>...]`
175
+
Set rule severity to error
176
+
177
+
This flag sets the specified RULE_ID's severity to error. You can specify multiple rules by using the flag multiple times. If no RULE_ID is provided, all rules will be set to error. Note, this flag must use `=` to specify its value.
178
+
179
+
### `--warning[=<RULE_ID>...]`
180
+
Set rule severity to warning
181
+
182
+
This flag sets the specified RULE_ID's severity to warning. You can specify multiple rules by using the flag multiple times. If no RULE_ID is provided, all rules will be set to warning. Note, this flag must use `=` to specify its value.
183
+
184
+
### `--info[=<RULE_ID>...]`
185
+
Set rule severity to info
186
+
187
+
This flag sets the specified RULE_ID's severity to info. You can specify multiple rules by using the flag multiple times. If no RULE_ID is provided, all rules will be set to info. Note, this flag must use `=` to specify its value.
188
+
189
+
### `--hint[=<RULE_ID>...]`
190
+
Set rule severity to hint
191
+
192
+
This flag sets the specified RULE_ID's severity to hint. You can specify multiple rules by using the flag multiple times. If no RULE_ID is provided, all rules will be set to hint. Note, this flag must use `=` to specify its value.
193
+
194
+
### `--off[=<RULE_ID>...]`
195
+
Turn off rule
196
+
197
+
This flag turns off the specified RULE_ID. You can disable multiple rules by using the flag multiple times. If no RULE_ID is provided, all rules will be turned off. Note, this flag must use `=` to specify its value.
0 commit comments