public void AnalyzeInterface(ProjectAnalysisData prj, ProjectMetrics metrics)
 {
     foreach (var inf in prj.Interfaces)
     {
         break;
     }
 }
Exemplo n.º 2
0
 public void AnalyzeClass(ProjectAnalysisData prj, ProjectMetrics metrics)
 {
     foreach (var cls in prj.Classes)
     {
         ClassMetrics clsMetrics = new ClassMetrics();
         CalculateClassMetrics(prj, clsMetrics, cls);
         AnalyzeMethod(prj, cls, clsMetrics);
         AnalyzePropertie(prj, cls, clsMetrics);
         metrics.ClassMetrics.Add(clsMetrics);
     }
 }
Exemplo n.º 3
0
 private static void AnalyzeProject(SolutionAnalysisData result, List <ProjectMetrics> metricsList)
 {
     foreach (var prj in result.Projects)
     {
         AnalyzeClassMetrics     ac      = new AnalyzeClassMetrics();
         AnalyzeInterfaceMetrics ai      = new AnalyzeInterfaceMetrics();
         ProjectMetrics          metrics = new ProjectMetrics();
         metrics.Projectname = prj.Project.Name;
         ac.AnalyzeClass(prj, metrics);
         ai.AnalyzeInterface(prj, metrics);
         metricsList.Add(metrics);
     }
 }