microsoft / service-fabric-reverse-proxy
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 86 units with 1,609 lines of code in units (67.8% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (194 lines of code)
    • 6 medium complex units (646 lines of code)
    • 5 simple units (177 lines of code)
    • 74 very simple units (592 lines of code)
0% | 12% | 40% | 11% | 36%
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
cs0% | 12% | 40% | 11% | 36%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
sfintegration0% | 21% | 53% | 1% | 23%
sfintegration/Controllers0% | 0% | 55% | 31% | 13%
gateway0% | 0% | 0% | 40% | 59%
sfintegration/envoymodels0% | 0% | 0% | 0% | 100%
sfintegration/models0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static EnvoyDefaults()
in sfintegration/ServiceData.cs
194 41 0
156 22 0
137 19 1
private static void Handler()
in sfintegration/ServiceData.cs
126 18 2
private IActionResult GetRoutesForGateway()
in sfintegration/Controllers/v1.cs
88 16 2
static SF_Services()
in sfintegration/ServiceData.cs
73 14 0
public IActionResult GetRoutes()
in sfintegration/Controllers/v1.cs
66 11 3
public IActionResult GetClusters()
in sfintegration/Controllers/v1.cs
43 9 2
44 8 0
public IActionResult GetHosts()
in sfintegration/Controllers/v1.cs
43 8 1
29 7 0
18 6 0
27 5 1
public static void LogMessage()
in gateway/Program.cs
16 4 2
static void InitClient()
in sfintegration/EnableResolveNotifications.cs
26 4 2
public static void LogMessage()
in sfintegration/ServiceData.cs
16 4 2
private static void AddPartitionToService()
in sfintegration/ServiceData.cs
23 4 2
19 3 1
static string GetResolverURI()
in gateway/Program.cs
14 3 0
public IActionResult GetListeners()
in sfintegration/Controllers/v1.cs
19 3 2