예제 #1
0
 private void SetCyclomaticComplexity(PreparedMetricsReport metrics)
 {
     _CyclomaticComplexity.Update(
         metrics.Rated.AverageRatedCyclomaticComplexity,
         metrics.CommonKnowledge.NumberOfMethods,
         metrics.CyclomaticComplexityHotspots.Count(),
         metrics.CyclomaticComplexityHistogram.GeometricalFit.Parameter);
 }
예제 #2
0
 private void SetClassSize(PreparedMetricsReport metrics)
 {
     _ClassSize.Update(
         metrics.Rated.AverageRatedClassSize,
         metrics.CommonKnowledge.NumberOfTypes,
         metrics.ClassSizeHotspots.Count(),
         metrics.ClassSizeHistogram.GeometricalFit.Parameter);
 }
예제 #3
0
 private void SetACD(PreparedMetricsReport metrics)
 {
     _AverageComponentDependency.Update(
         metrics.Rated.AverageComponentDependency,
         metrics.CommonKnowledge.NumberOfTypes,
         metrics.CumulativeComponentDependencyHotspots.Count(),
         metrics.CumulativeComponentDependencyHistogram.GeometricalFit.Parameter);
 }
예제 #4
0
 private void SetNamespacesWithCycles(PreparedMetricsReport metrics)
 {
     _NamespacesWithCycles.Update(
         metrics.Rated.NamespacesWithCyclicDependencies,
         metrics.CommonKnowledge.NumberOfNamespaces,
         metrics.NumberOfNamespacesInCycleHotspots.Count(),
         metrics.NumberOfNamespacesInCycleHistogram.GeometricalFit.Parameter);
 }
예제 #5
0
 private void SetNumberOfNonStaticPublicFields(PreparedMetricsReport metrics)
 {
     _NonStaticPublicFields.Update(
         metrics.Rated.AverageRatedNumberOfNonStaticPublicFields,
         metrics.CommonKnowledge.NumberOfTypes,
         metrics.NumberOfNonStaticPublicFieldsHotspots.Count(),
         metrics.NumberOfNonStaticPublicFieldsHistogram.GeometricalFit.Parameter);
 }
예제 #6
0
 private void SetMethodLength(PreparedMetricsReport metrics)
 {
     _MethodLength.Update(
         metrics.Rated.AverageRatedMethodLength,
         metrics.CommonKnowledge.NumberOfMethods,
         metrics.MethodLengthHotspots.Count(),
         metrics.MethodLengthHistogram.GeometricalFit.Parameter);
 }