microsoft / vssetup.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 54 units with 692 lines of code in units (43.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (157 lines of code)
    • 52 very simple units (535 lines of code)
0% | 0% | 0% | 22% | 77%
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% | 0% | 22% | 77%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/VSSetup.PowerShell0% | 0% | 0% | 28% | 71%
src/VSSetup.PowerShell/PowerShell0% | 0% | 0% | 13% | 86%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
internal Instance()
in src/VSSetup.PowerShell/Instance.cs
123 6 1
protected override void ProcessRecord()
in src/VSSetup.PowerShell/PowerShell/GetInstanceCommand.cs
34 6 0
public int Compare()
in src/VSSetup.PowerShell/InstanceComparer.cs
21 5 2
private void WriteInstance()
in src/VSSetup.PowerShell/PowerShell/GetInstanceCommand.cs
11 5 2
public override object GetPropertyValue()
in src/VSSetup.PowerShell/PowerShell/InstanceAdapter.cs
22 5 1
private static int Compare()
in src/VSSetup.PowerShell/InstanceComparer.cs
16 4 2
public static bool TryFromComObject()
in src/VSSetup.PowerShell/Module.cs
25 4 2
public static bool ContainsAny()
in src/VSSetup.PowerShell/PowerShell/Extensions.cs
21 4 4
private IEnumerable GetInstances()
in src/VSSetup.PowerShell/PowerShell/GetInstanceCommand.cs
16 4 0
private static IEnumerable YieldAdaptedPackages()
in src/VSSetup.PowerShell/Utilities.cs
14 4 2
public static Version Normalize()
in src/VSSetup.PowerShell/Extensions.cs
7 3 1
protected virtual void Dispose()
in src/VSSetup.PowerShell/Module.cs
11 3 1
public static bool ContainsAll()
in src/VSSetup.PowerShell/PowerShell/Extensions.cs
17 3 4
public static T GetPropertyValue()
in src/VSSetup.PowerShell/PowerShell/Extensions.cs
18 3 3
public override PSAdaptedProperty GetProperty()
in src/VSSetup.PowerShell/PowerShell/InstanceAdapter.cs
14 3 2
private void EnsureProperties()
in src/VSSetup.PowerShell/PowerShell/InstanceAdapter.cs
19 3 1
private static Version TryGetQueryVersion()
in src/VSSetup.PowerShell/PowerShell/VersionTable.cs
15 3 0
public static ISetupConfiguration2 Create()
in src/VSSetup.PowerShell/QueryFactory.cs
15 3 0
public static bool TryParseVersion()
in src/VSSetup.PowerShell/Utilities.cs
18 3 2
public static ReadOnlyCollection TrySetCollection()
in src/VSSetup.PowerShell/Utilities.cs
20 3 5