public DiagnosticResultCommonProperties(IAnalyzerDetailsReporter analyzer)
 {
     var details = analyzer.GetAnalyzerDetails();
     Severity = details.Severity;
     Title = details.Title.ToString();
     Description = details.Description.ToString();
     Category = details.Category.Name;
     Id = details.DiagnosticId;
 }
Example #2
0
        public DiagnosticResultCommonProperties(IAnalyzerDetailsReporter analyzer)
        {
            var details = analyzer.GetAnalyzerDetails();

            Severity    = details.Severity;
            Title       = details.Title.ToString();
            Description = details.Description.ToString();
            Category    = details.Category.Name;
            Id          = details.DiagnosticId;
        }