microsoft / Partner-Center-PowerShell
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 416 units with 3,884 lines of code in units (33.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (231 lines of code)
    • 15 simple units (486 lines of code)
    • 398 very simple units (3,167 lines of code)
0% | 0% | 5% | 12% | 81%
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% | 5% | 12% | 81%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/PowerShell/Commands0% | 0% | 9% | 20% | 70%
src/PowerShell/Utilities0% | 0% | 12% | 0% | 87%
src/PowerShell/Validations0% | 0% | 72% | 0% | 27%
src/PowerShell/Factories0% | 0% | 0% | 53% | 46%
src/PowerShell/Attributes0% | 0% | 0% | 48% | 51%
src/PowerShell/Authenticators0% | 0% | 0% | 9% | 90%
src/PowerShell/Models0% | 0% | 0% | 2% | 97%
src/PowerShell/Extensions0% | 0% | 0% | 8% | 91%
src/PowerShell/Network0% | 0% | 0% | 0% | 100%
src/PowerShell/Exceptions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public override void ExecuteCmdlet()
in src/PowerShell/Commands/NewPartnerAccessToken.cs
140 20 0
private static string GetUserHomeDirOnUnix()
in src/PowerShell/Utilities/SharedUtilities.cs
47 12 0
public async Task IsValidAsync()
in src/PowerShell/Validations/AddressValidator.cs
44 11 2
public override void ExecuteCmdlet()
in src/PowerShell/Commands/GetPartnerInvoiceLineItem.cs
55 10 0
private AuthenticationParameters GetAuthenticationParameters()
in src/PowerShell/Factories/AuthenticationFactory.cs
32 9 4
private void CloneAdditionalOperations()
in src/PowerShell/Models/Utilizations/PSAzureUtilizationRecord.cs
26 9 1
public override void ExecuteCmdlet()
in src/PowerShell/Commands/GetPartnerProductSku.cs
47 8 0
public override void ExecuteCmdlet()
in src/PowerShell/Commands/GetPartnerUserSignInActivity.cs
50 8 0
public void PrintCustomAttributeInfo()
in src/PowerShell/Attributes/BreakingChangeBaseAttribute.cs
53 7 3
public override void ExecuteCmdlet()
in src/PowerShell/Commands/GetPartnerProductAvailability.cs
37 7 0
public override void ExecuteCmdlet()
in src/PowerShell/Commands/RegisterPartnerTokenCache.cs
21 7 0
public async Task AuthenticateAsync()
in src/PowerShell/Factories/AuthenticationFactory.cs
24 7 5
private static IConfidentialClientApplication CreateConfidentialClient()
in src/PowerShell/Authenticators/DelegatingAuthenticator.cs
36 6 6
public override void ExecuteCmdlet()
in src/PowerShell/Commands/GetPartnerProduct.cs
31 6 0
private static bool IsTransient()
in src/PowerShell/Commands/GetPartnerUserSignInActivity.cs
12 6 1
protected override void ProcessRecord()
in src/PowerShell/Commands/ResolvePartnerError.cs
23 6 0
private void HandleException()
in src/PowerShell/Commands/ResolvePartnerError.cs
26 6 2
private static void CloneProperties()
in src/PowerShell/Extensions/ResourceExtensions.cs
13 6 2
private static AzureCloudInstance GetAzureCloudInstance()
in src/PowerShell/Authenticators/DelegatingAuthenticator.cs
21 5 1
public override void ExecuteCmdlet()
in src/PowerShell/Commands/GetPartnerInvoiceStatement.cs
32 5 0