protected override void BeginProcessing() { SARIFConverter = new SARIFConverter(); FilePathResolver = new FilePathResolver(); base.BeginProcessing(); }
protected override void EndProcessing() { string sarifFilePath = FilePathResolver.Resolver(FilePath, SessionState.Path.CurrentFileSystemLocation.Path); SarifLog log = SARIFConverter.ConvertToSarifLog(diagnosticsRecords, string.IsNullOrWhiteSpace(IgnorePattern) ? null : new Regex(IgnorePattern)); log?.Save(sarifFilePath); base.EndProcessing(); }