Ejemplo n.º 1
0
 public static IEnumerable <MethodMetricsReport> MethodLength(params int[] mls)
 {
     return(CreateMany.Metrics(m => new MethodMetricsReport {
         NumberOfLogicalLines = m
     }, mls)
            .Hotspots().OfMethodLength());
 }
Ejemplo n.º 2
0
 public static double RatedCyclomaticComplexity(params int[] ccs)
 {
     return(CreateMany.RatedMetrics(m => new MethodMetricsReport {
         CyclomaticComplexity = m
     }, ccs)
            .AverageRatedCyclomaticComplexity);
 }
Ejemplo n.º 3
0
 public static IEnumerable <MethodMetricsReport> CyclomaticComplexityUnderLimit(int limit, params int[] ccs)
 {
     return(CreateMany.Metrics(m => new MethodMetricsReport {
         CyclomaticComplexity = m
     }, ccs)
            .Hotspots().OfCyclomaticComplexityOver(limit));
 }
Ejemplo n.º 4
0
 public static double RatedNumberOfNamespacesInCycle(params int[] nonics)
 {
     return(CreateMany.RatedMetrics(m => new NamespaceMetricsReport {
         Name = Create.RandomName(), CyclicDependencies = Create.Default <string>(m)
     }, nonics)
            .NamespacesWithCyclicDependencies);
 }
Ejemplo n.º 5
0
 public static double CumulativeComponentDependency(params int[] ccds)
 {
     return(CreateMany.RatedMetrics(m => new TypeMetricsReport {
         FullName = Create.RandomName(), CumulativeComponentDependency = m
     }, ccds)
            .AverageComponentDependency);
 }
Ejemplo n.º 6
0
 public static double RatedNumberOfNonStaticPublicFields(params int[] nspfs)
 {
     return(CreateMany.RatedMetrics(m => new TypeMetricsReport {
         FullName = Create.RandomName(), NumberOfNonStaticPublicFields = m
     }, nspfs)
            .AverageRatedNumberOfNonStaticPublicFields);
 }
Ejemplo n.º 7
0
 public static double RatedClassSize(params int[] css)
 {
     return(CreateMany.RatedMetrics(m => new TypeMetricsReport {
         FullName = Create.RandomName(), NumberOfMethods = m
     }, css)
            .AverageRatedClassSize);
 }
Ejemplo n.º 8
0
 public static double RatedMethodLength(params int[] mls)
 {
     return(CreateMany.RatedMetrics(m => new MethodMetricsReport {
         NumberOfLogicalLines = m
     }, mls)
            .AverageRatedMethodLength);
 }