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);
        }
Exemple #2
0
        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);
        }