public void NoteTestResult(ResultKind messageKind, string targetPath) { switch (messageKind) { case ResultKind.Pass: { PassTargets.Add(targetPath); break; } case ResultKind.ConfigurationError: { ConfigurationErrorTargets.Add(targetPath); break; } case ResultKind.Error: { FailTargets.Add(targetPath); break; } case ResultKind.NotApplicable: { NotApplicableTargets.Add(targetPath); break; } case ResultKind.Note: case ResultKind.InternalError: { throw new NotImplementedException(); } default: { throw new InvalidOperationException(); } } }
public void LogConfigurationNotification(Notification notification) { ConfigurationErrorTargets.Add(notification.PhysicalLocation.Uri.LocalPath); }
public void LogConfigurationNotification(Sarif.Notification notification) { ConfigurationErrorTargets.Add(notification.Locations[0].PhysicalLocation.ArtifactLocation.Uri.LocalPath); }