Skip to content

Commit eba5ca4

Browse files
authored
Output formatted instead of minified sarif (#577)
Fix #576
1 parent 044dc12 commit eba5ca4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AppInspector.CLI/Writers/AnalyzeSarifWriter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ public override void WriteResults(Result result, CLICommandOptions commandOption
285285
// The provided schema (rtm.6) is 404, so replace it with a 2.1.0 that is available.
286286
reReadLog["$schema"] = "https://www.schemastore.org/schemas/json/sarif-2.1.0-rtm.5.json";
287287
using var jsonWriter = new JsonTextWriter(TextWriter);
288+
jsonWriter.Formatting = Formatting.Indented;
288289
reReadLog.WriteTo(jsonWriter);
289290
// Add a newline at the end to make logging messages cleaner
290291
TextWriter.WriteLine();

0 commit comments

Comments
 (0)