aws / aws-mobile-analytics-manager-net
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 89 units with 1,403 lines of code in units (67.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (60 lines of code)
    • 7 simple units (308 lines of code)
    • 81 very simple units (1,035 lines of code)
0% | 0% | 4% | 21% | 73%
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% | 4% | 21% | 73%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Delivery0% | 0% | 11% | 34% | 53%
src/Event0% | 0% | 0% | 17% | 82%
src/_bcl450% | 0% | 0% | 83% | 16%
src/_bcl350% | 0% | 0% | 65% | 34%
src0% | 0% | 0% | 0% | 100%
src/Session0% | 0% | 0% | 0% | 100%
src/Model0% | 0% | 0% | 0% | 100%
src/Delivery/Policy0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void SubmitEvents()
in src/Delivery/DeliveryClient.cs
60 11 2
private void SubmitEvents()
in src/Delivery/DeliveryClient.cs
57 10 2
public void AddGlobalAttribute()
in src/Event/CustomEvent.cs
35 9 3
public void AttemptDelivery()
in src/Delivery/DeliveryClient.cs
61 9 0
public async Task AttemptDeliveryAsync()
in src/Delivery/DeliveryClient.cs
57 9 0
private async Task DoWorkAsync()
in src/_bcl45/BackgroundRunner.bcl45.cs
35 7 1
public void AddGlobalMetric()
in src/Event/CustomEvent.cs
29 6 3
private void DoWork()
in src/_bcl35/BackgroundRunner.bcl35.cs
34 6 0
public void AddAttribute()
in src/Event/CustomEvent.cs
23 5 2
public void AddGlobalAttribute()
in src/Event/CustomEvent.cs
23 5 2
public void RemoveGlobalAttribute()
in src/Event/CustomEvent.cs
18 5 2
public string GetGlobalAttribute()
in src/Event/CustomEvent.cs
20 5 2
public void RemoveGlobalMetric()
in src/Event/CustomEvent.cs
18 5 2
public double? GetGlobalMetric()
in src/Event/CustomEvent.cs
20 5 2
12 5 4
internal MobileAnalyticsErrorEventArgs()
in src/MobileAnalyticsManager.cs
15 5 4
public DeliveryClient()
in src/Delivery/DeliveryClient.bcl.cs
27 5 6
private static void AddDict()
in src/Event/CustomEvent.cs
15 4 2
11 4 3
private bool IsAlive()
in src/_bcl35/BackgroundRunner.bcl35.cs
6 4 0