microsoft / slngen
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 132 units with 2,289 lines of code in units (54.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (120 lines of code)
    • 7 medium complex units (456 lines of code)
    • 14 simple units (475 lines of code)
    • 110 very simple units (1,238 lines of code)
0% | 5% | 19% | 20% | 54%
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% | 5% | 19% | 20% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Microsoft.VisualStudio.SlnGen0% | 7% | 16% | 28% | 47%
src/Shared0% | 0% | 48% | 6% | 45%
src/Microsoft.VisualStudio.SlnGen.Tool0% | 0% | 90% | 0% | 9%
src/Microsoft.VisualStudio.SlnGen/Tasks0% | 0% | 0% | 21% | 78%
src/Microsoft.VisualStudio.SlnGen/ProjectLoading0% | 0% | 0% | 0% | 100%
src/Microsoft.VisualStudio.SlnGen.Extension0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
internal void Save()
in src/Microsoft.VisualStudio.SlnGen/SlnFile.cs
120 35 4
public static()
in src/Microsoft.VisualStudio.SlnGen/SlnFile.cs
70 17 4
public static bool TryParseExistingSolution()
in src/Microsoft.VisualStudio.SlnGen/SlnFile.cs
66 17 3
public static int Main()
in src/Microsoft.VisualStudio.SlnGen.Tool/Program.cs
65 16 1
private static int Execute()
in src/Microsoft.VisualStudio.SlnGen/Program.cs
50 15 2
64 13 0
public static bool TryLaunch()
in src/Microsoft.VisualStudio.SlnGen/VisualStudioLauncher.cs
65 11 4
public static bool TryResolveDotNetCoreSdk()
in src/Shared/DotNetCoreSdkResolver.cs
76 11 2
public static int Main()
in src/Microsoft.VisualStudio.SlnGen/Program.cs
52 10 1
internal static int Execute()
in src/Microsoft.VisualStudio.SlnGen/Program.cs
84 10 2
public static string ToFullPathInCorrectCase()
in src/Shared/ExtensionMethods.Shared.cs
19 10 1
private ProjectInstance GetProjectInstance()
in src/Microsoft.VisualStudio.SlnGen/Tasks/SlnGenToolTask.cs
23 9 0
private static IEnumerable GetLoggers()
in src/Microsoft.VisualStudio.SlnGen/Program.cs
25 8 2
public bool TryGetEntryProjectPaths()
in src/Microsoft.VisualStudio.SlnGen/ProgramArguments.cs
43 8 2
private static void CreateHierarchy()
in src/Microsoft.VisualStudio.SlnGen/SlnHierarchy.cs
37 8 2
public bool PostEvent()
in src/Microsoft.VisualStudio.SlnGen/TelemetryClient.cs
30 8 3
internal static IReadOnlyList GetConfigurations()
in src/Microsoft.VisualStudio.SlnGen/SlnProject.cs
28 7 3
private static IReadOnlyList GetPlatforms()
in src/Microsoft.VisualStudio.SlnGen/SlnProject.cs
28 7 3
public static IEnumerable ParseLoggerParameters()
in src/Microsoft.VisualStudio.SlnGen/ForwardingLogger.cs
23 6 1
private static bool TryGetRemoteUri()
in src/Microsoft.VisualStudio.SlnGen/GitRepositoryInfo.cs
33 6 2