microsoft / AzureKeyVaultExplorer
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 425 units with 5,658 lines of code in units (64.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 9 medium complex units (292 lines of code)
    • 28 simple units (721 lines of code)
    • 388 very simple units (4,645 lines of code)
0% | 0% | 5% | 12% | 82%
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% | 82%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Vault/Explorer0% | 0% | 6% | 11% | 82%
Vault/Library0% | 0% | 0% | 30% | 69%
Vault/Core0% | 0% | 0% | 2% | 97%
Vault/ClearClipboard0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static ContentType FromExtension()
in Vault/Explorer/ContentType.cs
39 19 1
32 19 2
public static string FromRawValue()
in Vault/Explorer/ContentType.cs
37 16 2
public static string ToRawValue()
in Vault/Explorer/ContentType.cs
36 16 2
public static string ToExtension()
in Vault/Explorer/ContentType.cs
33 15 1
public static int ToFilterIndex()
in Vault/Explorer/ContentType.cs
32 15 1
public static string ToSyntaxHighlightingMode()
in Vault/Explorer/ContentType.cs
26 15 1
28 15 2
public int Compare()
in Vault/Explorer/ListViewSecrets.cs
29 12 2
private void uxListViewSecrets_KeyUp()
in Vault/Explorer/MainForm.cs
30 10 2
private void AutoDetectSecretKind()
in Vault/Explorer/SecretDialog.cs
34 10 0
public void RepopulateSubItems()
in Vault/Explorer/ListViewItemBase.cs
16 9 0
private bool SetCurrentVaultAlias()
in Vault/Explorer/MainForm.cs
35 9 0
public static bool VerifyDuplication()
in Vault/Explorer/ListViewItemBase.cs
16 8 3
private FileInfo GetFileInfo()
in Vault/Explorer/MainForm.cs
20 8 2
private async void uxButtonEdit_Click()
in Vault/Explorer/MainForm.cs
34 8 2
public override void AddOrUpdateSecretKind()
in Vault/Explorer/PropertyObjectSecret.cs
20 8 1
36 8 2
75 7 2
public override string AreCustomTagsValid()
in Vault/Explorer/PropertyObjectSecret.cs
18 7 0