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/run.md
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -155,17 +155,25 @@ Possible values:
155
155
-**always**: Always print heading regardless of output type
156
156
-**never**: Never print heading regardless of output type
157
157
158
-
### `--tracing <LEVEL>`
158
+
### `--inspect <GRANULARITY>`
159
+
Inspect information for file/rule discovery and scanning.
159
160
160
-
Show tracing information for file/rule discovery and scanning.
161
+
This flag helps user to observe ast-grep's internal filtering of files and rules. Inspection will output how many and why files and rules are scanned and skipped. Inspection outputs to stderr and does not affect the result of the search.
161
162
162
-
This flag helps user to inspect ast-grep's internal filtering of files and rules. tracing will output how many and why files and rules are scanned and skipped. tracing information outputs to stderr and does not affect the result of the search.
163
+
The format of the output is informally defined as follows:
The [Extended Backus–Naur form](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) notation is specified in the [issue](https://github.com/ast-grep/ast-grep/issues/1574).
163
170
164
171
[default: nothing]
165
172
166
173
Possible values:
167
174
-**nothing**: Do not show any tracing information
168
175
-**summary**: Show summary about how many files are scanned and skipped
176
+
-**entity**: Show per-file/per-rule tracing information
Copy file name to clipboardExpand all lines: website/reference/cli/scan.md
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -102,17 +102,25 @@ Possible values:
102
102
- stream: Prints each match as a separate JSON object, followed by a newline character. This is useful for streaming the output to other programs that can read one object per line
103
103
- compact: Prints the matches as a single-line JSON array, without any whitespace. This is useful for saving space and minimizing the output size
104
104
105
-
### `--tracing <LEVEL>`
105
+
### `--inspect <GRANULARITY>`
106
+
Inspect information for file/rule discovery and scanning.
106
107
107
-
Show tracing information for file/rule discovery and scanning.
108
+
This flag helps user to observe ast-grep's internal filtering of files and rules. Inspection will output how many and why files and rules are scanned and skipped. Inspection outputs to stderr and does not affect the result of the search.
108
109
109
-
This flag helps user to inspect ast-grep's internal filtering of files and rules. tracing will output how many and why files and rules are scanned and skipped. tracing information outputs to stderr and does not affect the result of the search.
110
+
The format of the output is informally defined as follows:
The [Extended Backus–Naur form](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) notation is specified in the [issue](https://github.com/ast-grep/ast-grep/issues/1574).
110
117
111
118
[default: nothing]
112
119
113
120
Possible values:
114
121
-**nothing**: Do not show any tracing information
115
122
-**summary**: Show summary about how many files are scanned and skipped
123
+
-**entity**: Show per-file/per-rule tracing information
116
124
117
125
### `--format <FORMAT>`
118
126
Output warning/error messages in GitHub Action format.
0 commit comments