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
- List the details about all rules for all engines; also write the rules in JSON format to a file called "rules.json" in the "out" folder, which must already exist:
36
36
37
-
<%= config.bin %> <%= command.id %> --rule-selector all
- Get a more accurate list of the rules that apply specifically to your workspace (all the files in the current folder):
40
40
@@ -102,14 +102,16 @@ Format to display the rules in the terminal.
102
102
103
103
# flags.view.description
104
104
105
-
The format `table` is concise and shows minimal output, the format `detail` shows all available information. If you specify neither --view nor --output-file, then the default table view is shown. If you specify --output-file but not --view, only summary information is shown.
105
+
The format `table` is concise and shows minimal output, the format `detail` shows all available information.
106
+
107
+
If you specify neither --view nor --output-file, then the default table view is shown. If you specify --output-file but not --view, only summary information is shown in the terminal.
106
108
107
109
# flags.output-file.summary
108
110
109
-
Output file location to write the selected rules. The file is written in JSON format.
111
+
Name of the file where the selected rules are written. The file format depends on the extension you specify; currently, only .json is supported for JSON-formatted output.
110
112
111
113
# flags.output-file.description
112
114
113
-
Use this flag to write the selected rules to a JSON file. For example: "--output-file ./out/rules.json” creates a JSON results file in the "./out" folder. If the file exists already, it will be overwritten.
115
+
If you specify a folder, such as "--output-file ./out/rules.json", the folder must already exist or you get an error. If the file already exists, it's overwritten without prompting.
114
116
115
-
If you don't specify this flag, the command outputs the rules in the terminal. The view flag can be used in combination with this flag to save the file and output the results.
117
+
If you don't specify this flag, the command outputs the rules to only the terminal.
Copy file name to clipboardexpand all lines: messages/run-command.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -126,20 +126,23 @@ If you specify neither --view nor --output-file, then the default table view is
126
126
127
127
# flags.output-file.summary
128
128
129
-
Output file that contains the analysis results. The file format depends on the extension you specify, such as .csv, .html, .xml, and so on.
129
+
Name of the file where the analysis results are written. The file format depends on the extension you specify, such as .csv, .html, .xml, and so on.
130
130
131
131
# flags.output-file.description
132
132
133
-
If you don't specify this flag, the command outputs the results in the terminal. Use this flag to print the results to a file; the format of the results depends on the extension you provide. For example, "--output-file results.csv" creates a comma-separated values file. You can specify one of these extensions:
133
+
If you don't specify this flag, the command outputs the results to only the terminal. Use this flag to print the results to a file; the format of the results depends on the extension you provide. For example, "--output-file results.csv" creates a comma-separated values file. You can specify one of these extensions:
134
134
135
135
- .csv
136
136
- .html or .htm
137
137
- .json
138
138
- .sarif or .sarif.json
139
139
- .xml
140
140
141
-
To output the results to multiple files, specify this flag multiple times. For example: "--output-file ./out/results.json --output-file ./out/report.html" creates a JSON results file and an HTML file in the "./out" folder.
141
+
To output the results to multiple files, specify this flag multiple times. For example: "--output-file results.json --output-file report.html" creates both a JSON results file and an HTML file.
142
+
143
+
If you specify a folder, such as "--output-file ./out/results.json", the folder must already exist or you get an error. If the file already exists, it's overwritten without prompting.
0 commit comments