Skip to content

Commit

Permalink
Dont output the BOM as it breaks sarif upload in the action (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfs authored Oct 19, 2022
1 parent 758f2ec commit eb71db3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

Expand Down Expand Up @@ -294,7 +295,7 @@ public int RunFileEntries(IEnumerable<FileEntry> fileListing, StreamWriter? outp

Writer outputWriter = WriterFactory.GetWriter(string.IsNullOrEmpty(opts.OutputFileFormat) ? "text" : opts.OutputFileFormat,
opts.OutputTextFormat,
(outputStreamWriter is null)?(string.IsNullOrEmpty(opts.OutputFile) ? Console.Out : File.CreateText(opts.OutputFile)):outputStreamWriter,
(outputStreamWriter is null)?(string.IsNullOrEmpty(opts.OutputFile) ? Console.Out : new StreamWriter(opts.OutputFile, false, new UTF8Encoding(false))):outputStreamWriter,
(outputStreamWriter is null)?opts.OutputFile:null);

int filesAnalyzed = 0;
Expand Down

0 comments on commit eb71db3

Please sign in to comment.