microsoft / MTC_WhackAMole.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 176 units with 1,709 lines of code in units (43.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (69 lines of code)
    • 4 simple units (112 lines of code)
    • 170 very simple units (1,528 lines of code)
0% | 0% | 4% | 6% | 89%
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% | 6% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
WhackAMole.UWPClient/Models0% | 0% | 15% | 9% | 75%
WhackAMole.UWPClient/Controls0% | 0% | 22% | 22% | 55%
MoleDeploy.UWPClient0% | 0% | 0% | 8% | 91%
WhackAMole.UWPClient/Services0% | 0% | 0% | 18% | 81%
WhackAMole.UWPClient0% | 0% | 0% | 0% | 100%
WhackAMole.UWPClient/ViewModel0% | 0% | 0% | 0% | 100%
WhackAMole.KubeServices0% | 0% | 0% | 0% | 100%
MoleDeploy.Vsts0% | 0% | 0% | 0% | 100%
MoleDeploy.SignalR0% | 0% | 0% | 0% | 100%
WhackAMole.KubeAdmin/Controllers0% | 0% | 0% | 0% | 100%
WhackAMole.KubeServices/Providers0% | 0% | 0% | 0% | 100%
WhackAMole.KubeAdmin0% | 0% | 0% | 0% | 100%
WhackAMole.MoleCloud0% | 0% | 0% | 0% | 100%
WhackAMole.MoleCloud/Controllers0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public void UpdatePosition()
in WhackAMole.UWPClient/Controls/MoleControl.cs
33 23 0
private async Task UpdatePodListAsync()
in WhackAMole.UWPClient/Models/WhackSpace.cs
36 11 0
public Tuple UpdatePosition()
in WhackAMole.UWPClient/Services/BaseMovementEngine.cs
25 9 2
private void LayoutDisplayPanel()
in WhackAMole.UWPClient/Controls/MoleControl.cs
33 8 0
private void _timer_Tick()
in WhackAMole.UWPClient/Models/WhackSpace.cs
22 7 1
private async void OnStateBegin()
in MoleDeploy.UWPClient/MainPage.xaml.cs
32 6 3
protected override void OnLaunched()
in MoleDeploy.UWPClient/App.xaml.cs
21 5 1
private Shape GetElementForState()
in MoleDeploy.UWPClient/MainPage.xaml.cs
16 5 1
private Shape GetClipElementForState()
in MoleDeploy.UWPClient/MainPage.xaml.cs
16 5 1
private void ProcessStateChangeNotification()
in MoleDeploy.UWPClient/VstsBuildStateMonitor.cs
12 5 1
public async Task Get()
in WhackAMole.KubeAdmin/Controllers/NodesController.cs
17 5 0
public async Task Get()
in WhackAMole.KubeAdmin/Controllers/PodsController.cs
20 5 1
protected override void OnLaunched()
in WhackAMole.UWPClient/App.xaml.cs
21 5 1
public override bool Equals()
in WhackAMole.UWPClient/Models/KubePod.cs
12 5 2
public static void Create()
in WhackAMole.UWPClient/Services/AdminService.cs
10 5 1
public static void Create()
in WhackAMole.UWPClient/Services/MoleService.cs
10 5 1
private static double GetColorComponent()
in MoleDeploy.UWPClient/HSLColor.cs
12 4 3
private string CreateRequest()
in WhackAMole.KubeServices/KubeBaseRequest.cs
10 4 3
private void AlignDisplay()
in WhackAMole.UWPClient/Models/WhackSpace.cs
7 4 1
private void CheckReentrancy()
in WhackAMole.UWPClient/SynchronizedObservableCollection.cs
7 4 0