microsoft / service-fabric-client-dotnet
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 3,102 units with 60,816 lines of code in units (71.0% of code).
    • 6 very complex units (1,569 lines of code)
    • 3 complex units (443 lines of code)
    • 110 medium complex units (9,300 lines of code)
    • 342 simple units (12,975 lines of code)
    • 2,641 very simple units (36,529 lines of code)
2% | <1% | 15% | 21% | 60%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cs2% | <1% | 15% | 21% | 60%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Microsoft.ServiceFabric.Client.Http/Generated3% | <1% | 20% | 25% | 50%
src/Microsoft.ServiceFabric.Powershell.Http0% | 0% | 22% | 25% | 52%
src/Microsoft.ServiceFabric.Client.Http0% | 0% | 10% | 24% | 64%
src/Microsoft.ServiceFabric.Powershell.Http/Generated0% | 0% | 1% | 21% | 76%
src/Microsoft.ServiceFabric.Client.Http/Extensions0% | 0% | 0% | 11% | 88%
src/Microsoft.ServiceFabric.Client.Http/Serialization0% | 0% | 0% | 29% | 70%
src/Microsoft.ServiceFabric.Client0% | 0% | 0% | 15% | 84%
src/Microsoft.ServiceFabric.Common/Security0% | 0% | 0% | 21% | 78%
src/Microsoft.ServiceFabric.Common/Generated0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.Common0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.Common/Utilities0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.Common/Exceptions0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.Client/Exceptions0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.Common/Extensions0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.Powershell.Http/Extensions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static FabricErrorCodes? Deserialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricErrorCodesConverter.cs
342 85 1
public static void Serialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricErrorCodesConverter.cs
260 85 2
internal static FabricEvent GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricEventConverter.cs
263 64 1
internal static void Serialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricEventConverter.cs
256 63 2
public static FabricEventKind? Deserialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricEventKindConverter.cs
254 63 1
public static void Serialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricEventKindConverter.cs
194 63 2
internal static StatefulServiceDescription GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/StatefulServiceDescriptionConverter.cs
175 29 1
internal static LoadMetricInformation GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/LoadMetricInformationConverter.cs
163 27 1
internal static void Serialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/LoadMetricInformationConverter.cs
105 26 2
internal static ApplicationEvent GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ApplicationEventConverter.cs
122 25 1
internal static StatelessServiceDescription GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/StatelessServiceDescriptionConverter.cs
151 25 1
internal static HealthEvaluation GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/HealthEvaluationConverter.cs
103 24 1
public static HealthEvaluationKind? Deserialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/HealthEvaluationKindConverter.cs
98 24 1
public static void Serialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/HealthEvaluationKindConverter.cs
77 24 2
internal static void Serialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/HealthEvaluationConverter.cs
96 23 2
internal static NodeInfo GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/NodeInfoConverter.cs
139 23 1
internal static ApplicationUpgradeProgressInfo GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ApplicationUpgradeProgressInfoConverter.cs
133 22 1
internal static ComposeDeploymentUpgradeProgressInfo GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ComposeDeploymentUpgradeProgressInfoConverter.cs
133 22 1
internal static NodeEvent GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/NodeEventConverter.cs
110 22 1
internal static StatefulServiceUpdateDescription GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/StatefulServiceUpdateDescriptionConverter.cs
127 21 1