microsoft / appcenter-sdk-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 1,669 units with 16,623 lines of code in units (59.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (301 lines of code)
    • 46 simple units (1,553 lines of code)
    • 1,618 very simple units (14,769 lines of code)
0% | 0% | 1% | 9% | 88%
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% | 1% | 9% | 88%
cake0% | 0% | 0% | 13% | 86%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
SDK/AppCenterCrashes0% | 0% | 5% | 10% | 83%
Apps/Contoso.Forms.Puppet0% | 0% | 5% | 14% | 79%
Apps/Contoso.Forms.Demo0% | 0% | 5% | 15% | 79%
SDK/AppCenter0% | 0% | 1% | 16% | 82%
Apps/Contoso.WinUI.Desktop.Puppet0% | 0% | 0% | 18% | 81%
Apps/Contoso.WinUI.Desktop.Demo0% | 0% | 0% | 18% | 81%
scripts/configuration0% | 0% | 0% | 21% | 78%
ROOT0% | 0% | 0% | 11% | 88%
SDK/AppCenterAnalytics0% | 0% | 0% | 5% | 94%
Apps/Contoso.WinForms.Puppet.DotNetCore0% | 0% | 0% | 0% | 100%
Apps/Contoso.WinForms.Demo.DotNetCore0% | 0% | 0% | 0% | 100%
Apps/Contoso.WinForms.Puppet0% | 0% | 0% | 0% | 100%
Apps/Contoso.WinForms.Demo0% | 0% | 0% | 0% | 100%
Apps/Contoso.Android.Puppet0% | 0% | 0% | 0% | 100%
Apps/Contoso.WPF.Puppet.DotNetCore0% | 0% | 0% | 0% | 100%
Apps/Contoso.WPF.Puppet0% | 0% | 0% | 0% | 100%
Apps/Contoso.WPF.Demo.DotNetCore0% | 0% | 0% | 0% | 100%
Apps/Contoso.WPF.Demo0% | 0% | 0% | 0% | 100%
Apps/Contoso.iOS.Puppet0% | 0% | 0% | 0% | 100%
SDK/AppCenterDistribute0% | 0% | 0% | 0% | 100%
Apps/Contoso.MacOS.Puppet0% | 0% | 0% | 0% | 100%
Apps/Contoso.UWP.Puppet0% | 0% | 0% | 0% | 100%
Apps/Contoso.UWP.Demo0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Apps/Contoso.UtilClassLibrary0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
protected override void OnStart()
in Apps/Contoso.Forms.Puppet/Contoso.Forms.Puppet/App.xaml.cs
72 15 0
internal static string GetSecretAndTargetForPlatform()
in SDK/AppCenter/Microsoft.AppCenter.Shared/AppCenter.cs
58 15 2
protected override void OnStart()
in Apps/Contoso.Forms.Demo/Contoso.Forms.Demo/App.xaml.cs
66 14 0
private static ModelException ProcessException()
in SDK/AppCenterCrashes/Microsoft.AppCenter.Crashes.UWP/Utils/ErrorLogHelperPart.cs
54 13 3
private Task ProcessPendingErrorsAsync()
in SDK/AppCenterCrashes/Microsoft.AppCenter.Crashes.Windows.Shared/Crashes.cs
51 11 0
internal void StartInstance()
in SDK/AppCenter/Microsoft.AppCenter.Windows.Shared/AppCenter.cs
49 10 1
public virtual void Validate()
in SDK/AppCenter/Microsoft.AppCenter.Windows.Shared/Ingestion/Models/Device.cs
39 10 0
private void Suspend()
in SDK/AppCenter/Microsoft.AppCenter.Windows.Shared/Channel/Channel.cs
53 9 4
private void CheckPendingLogsInternal()
in SDK/AppCenter/Microsoft.AppCenter.Windows.Shared/Channel/Channel.cs
51 9 1
private static string GetRuleString()
in SDK/AppCenter/Microsoft.AppCenter.Windows.Shared/Ingestion/Models/ValidationException.cs
24 9 2
private static void WinEventHook()
in SDK/AppCenter/Microsoft.AppCenter.WindowsDesktop/Utils/ApplicationLifecycleHelperDesktop.cs
23 9 7
cake
private AssemblyGroup()
in scripts/configuration/AssemblyGroup.cake
41 9 2
public string GetFileDescription()
in Apps/Contoso.Forms.Demo/Contoso.Forms.Demo.Droid/FilePicker.cs
42 8 1
private static async Task SetCountryCode()
in Apps/Contoso.Forms.Demo/Contoso.Forms.Demo.UWP/App.xaml.cs
42 8 0
public static IEnumerable GetErrorAttachments()
in Apps/Contoso.Forms.Demo/Contoso.Forms.Demo/App.xaml.cs
33 8 0
public string GetFileDescription()
in Apps/Contoso.Forms.Puppet/Contoso.Forms.Puppet.Droid/FilePicker.cs
42 8 1
private static async Task SetCountryCode()
in Apps/Contoso.Forms.Puppet/Contoso.Forms.Puppet.UWP/App.xaml.cs
42 8 0
public static IEnumerable GetErrorAttachments()
in Apps/Contoso.Forms.Puppet/Contoso.Forms.Puppet/App.xaml.cs
33 8 0
private async Task TriggerIngestionAsync()
in SDK/AppCenter/Microsoft.AppCenter.Windows.Shared/Channel/Channel.cs
52 8 1
public async Task SendAsync()
in SDK/AppCenter/Microsoft.AppCenter.Windows.Shared/Ingestion/Http/HttpNetworkAdapter.cs
44 8 5