microsoft / service-fabric-aspnetcore
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 46 units with 523 lines of code in units (49.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (30 lines of code)
    • 45 very simple units (493 lines of code)
0% | 0% | 0% | 5% | 94%
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% | 0% | 0% | 5% | 94%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Microsoft.ServiceFabric.AspNetCore0% | 0% | 0% | 9% | 90%
src/Microsoft.ServiceFabric.AspNetCore.Configuration0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.AspNetCore.Kestrel0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.AspNetCore.HttpSys0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async Task OpenAsync()
in src/Microsoft.ServiceFabric.AspNetCore/GenericHostCommunicationListener.cs
30 6 1
public static IConfigurationBuilder AddServiceFabricConfiguration()
in src/Microsoft.ServiceFabric.AspNetCore.Configuration/ServiceFabricConfigurationExtensions.cs
25 5 3
public async Task OpenAsync()
in src/Microsoft.ServiceFabric.AspNetCore/WebHostCommunicationListener.cs
25 5 1
internal static bool StartsWithSegments()
in src/Microsoft.ServiceFabric.AspNetCore/PathStringExtensions.cs
21 4 4
public async Task Invoke()
in src/Microsoft.ServiceFabric.AspNetCore/ServiceFabricMiddleware.cs
32 4 1
public static IWebHostBuilder UseServiceFabricIntegration()
in src/Microsoft.ServiceFabric.AspNetCore/WebHostBuilderServiceFabricExtension.cs
21 4 3
internal void DefaultConfigAction()
in src/Microsoft.ServiceFabric.AspNetCore.Configuration/ServiceFabricConfigurationOptions.cs
12 3 2
internal string DefaultExtractValueFunc()
in src/Microsoft.ServiceFabric.AspNetCore.Configuration/ServiceFabricConfigurationOptions.cs
21 3 2
private void HandleNewPackage()
in src/Microsoft.ServiceFabric.AspNetCore.Configuration/ServiceFabricConfigurationProvider.cs
12 3 1
public static IApplicationBuilder UseServiceFabricMiddleware()
in src/Microsoft.ServiceFabric.AspNetCore/ApplicationBuilderExtensions.cs
12 3 2
public AspNetCoreCommunicationListener()
in src/Microsoft.ServiceFabric.AspNetCore/AspNetCoreCommunicationListener.cs
14 3 2
public AspNetCoreCommunicationListener()
in src/Microsoft.ServiceFabric.AspNetCore/AspNetCoreCommunicationListener.cs
14 3 2
internal void ConfigureToUseUniqueServiceUrl()
in src/Microsoft.ServiceFabric.AspNetCore/AspNetCoreCommunicationListener.cs
12 3 0
protected EndpointResourceDescription GetEndpointResourceDescription()
in src/Microsoft.ServiceFabric.AspNetCore/AspNetCoreCommunicationListener.cs
12 3 1
public ServiceFabricMiddleware()
in src/Microsoft.ServiceFabric.AspNetCore/ServiceFabricMiddleware.cs
13 3 2
public Task Invoke()
in src/Microsoft.ServiceFabric.AspNetCore/ServiceFabricReverseProxyIntegrationMiddleware.cs
19 3 1
public Action Configure()
in src/Microsoft.ServiceFabric.AspNetCore/ServiceFabricSetupFilter.cs
15 3 1
public static IConfigurationBuilder AddServiceFabricConfiguration()
in src/Microsoft.ServiceFabric.AspNetCore.Configuration/ServiceFabricConfigurationExtensions.cs
11 2 1
internal string DefaultExtractKeyFunc()
in src/Microsoft.ServiceFabric.AspNetCore.Configuration/ServiceFabricConfigurationOptions.cs
11 2 2
private void LoadPackage()
in src/Microsoft.ServiceFabric.AspNetCore.Configuration/ServiceFabricConfigurationProvider.cs
8 2 2