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();
            }
            }
        }
Exemple #2
0
 public void LogConfigurationNotification(Notification notification)
 {
     ConfigurationErrorTargets.Add(notification.PhysicalLocation.Uri.LocalPath);
 }
Exemple #3
0
 public void LogConfigurationNotification(Sarif.Notification notification)
 {
     ConfigurationErrorTargets.Add(notification.Locations[0].PhysicalLocation.ArtifactLocation.Uri.LocalPath);
 }