private CodeEvaluation GatherLOSummaries(SmellDetectionReport report) { var qualityEvaluation = new CodeEvaluation(); foreach (var codeSnippetId in report.IssuesForCodeSnippet.Keys) { qualityEvaluation.Put(codeSnippetId, GetSummaries(report.IssuesForCodeSnippet[codeSnippetId])); } return(qualityEvaluation); }
public SmellDetectionReport AnalyzeCodeQuality(string[] sourceCode) { var project = _codeModelFactory.CreateProject(sourceCode); var smellDetectionReport = new SmellDetectionReport(); foreach (var detector in _detectors) { smellDetectionReport.AddPartialReport(detector.FindIssues(project.Classes)); } return(smellDetectionReport); }