Skip to content

Commit

Permalink
Output formatted instead of minified sarif (#577)
Browse files Browse the repository at this point in the history
Fix #576
  • Loading branch information
gfs authored Feb 23, 2024
1 parent 044dc12 commit eba5ca4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AppInspector.CLI/Writers/AnalyzeSarifWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ public override void WriteResults(Result result, CLICommandOptions commandOption
// The provided schema (rtm.6) is 404, so replace it with a 2.1.0 that is available.
reReadLog["$schema"] = "https://www.schemastore.org/schemas/json/sarif-2.1.0-rtm.5.json";
using var jsonWriter = new JsonTextWriter(TextWriter);
jsonWriter.Formatting = Formatting.Indented;
reReadLog.WriteTo(jsonWriter);
// Add a newline at the end to make logging messages cleaner
TextWriter.WriteLine();
Expand Down

0 comments on commit eba5ca4

Please sign in to comment.