aws / aws-toolkit-common
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 48 units with 643 lines of code in units (41.4% 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)
    • 1 simple units (25 lines of code)
    • 47 very simple units (618 lines of code)
0% | 0% | 0% | 3% | 96%
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
ts0% | 0% | 0% | 21% | 78%
cs0% | 0% | 0% | 0% | 100%
kt0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
telemetry/vscode/src0% | 0% | 0% | 21% | 78%
telemetry/csharp/AwsToolkit.Telemetry.Events.Generator0% | 0% | 0% | 0% | 100%
telemetry/jetbrains/src/main0% | 0% | 0% | 0% | 100%
telemetry/csharp/AwsToolkit.Telemetry.Events/Core0% | 0% | 0% | 0% | 100%
telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/Utils0% | 0% | 0% | 0% | 100%
telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/Models0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function getArgsFromMetadata()
in telemetry/vscode/src/generate.ts
25 8 1
export function validateInput()
in telemetry/vscode/src/parser.ts
17 4 2
private CodeTypeDeclaration CreateMetricDataClass()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/DefinitionsBuilder.cs
40 4 1
static void Main()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/Program.cs
42 4 1
async function parseArguments()
in telemetry/vscode/src/generateTelemetry.ts
17 3 0
public static string ToPascalCase()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/Utils/StringExtensionMethods.cs
12 3 1
public string Build()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/DefinitionsBuilder.cs
45 3 0
private CodeMemberMethod CreateRecordMetricMethodByDataClass()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/DefinitionsBuilder.cs
92 3 1
private bool IsNullable()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/DefinitionsBuilder.cs
10 3 1
function isNumberArray()
in telemetry/vscode/src/generate.ts
6 2 1
fun generate()
in telemetry/jetbrains/src/main/kotlin/software/aws/toolkits/telemetry/generator/gradle/GenerateTelemetry.kt
9 2 0
fun buildResultOverloadFunction()
in telemetry/jetbrains/src/main/kotlin/software/aws/toolkits/telemetry/generator/TelemetryGenerator.kt
17 2 3
public static void AddMetadata()
in telemetry/csharp/AwsToolkit.Telemetry.Events/Core/MetricDatumExtensionMethods.cs
8 2 3
public static void AddMetadata()
in telemetry/csharp/AwsToolkit.Telemetry.Events/Core/MetricDatumExtensionMethods.cs
8 2 3
public static void AddMetadata()
in telemetry/csharp/AwsToolkit.Telemetry.Events/Core/MetricDatumExtensionMethods.cs
9 2 3
public static bool IsAliasedType()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/Utils/MetricTypeExtensionMethods.cs
8 2 1
public static Type GetAliasedType()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/Utils/MetricTypeExtensionMethods.cs
8 2 1
public static string GetGeneratedTypeName()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/Utils/MetricTypeExtensionMethods.cs
9 2 1
public DefinitionsBuilder AddMetricsTypes()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/DefinitionsBuilder.cs
9 2 2
internal void ProcessMetricType()
in telemetry/csharp/AwsToolkit.Telemetry.Events.Generator/DefinitionsBuilder.cs
7 2 2