aws / aws-extensions-for-dotnet-cli
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 479 units with 9,579 lines of code in units (63.5% of code).
    • 1 very complex units (425 lines of code)
    • 7 complex units (1,079 lines of code)
    • 31 medium complex units (1,951 lines of code)
    • 53 simple units (1,950 lines of code)
    • 387 very simple units (4,174 lines of code)
4% | 11% | 20% | 20% | 43%
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
cs4% | 11% | 20% | 19% | 43%
go0% | 0% | 0% | 73% | 26%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Amazon.ECS.Tools31% | 4% | 14% | 22% | 26%
src/Amazon.Lambda.Tools0% | 17% | 23% | 22% | 36%
src/Amazon.ElasticBeanstalk.Tools0% | 22% | 30% | 2% | 44%
src/Amazon.Common.DotNetCli.Tools0% | 0% | 17% | 26% | 56%
testapps/TestServerlessWebApp0% | 0% | 0% | 0% | 100%
testapps/MPDeployServerless0% | 0% | 0% | 0% | 100%
testapps/TestLayerAspNetCore0% | 0% | 0% | 0% | 100%
testapps/ImageBasedProjects0% | 0% | 0% | 0% | 100%
testapps/TestFunction0% | 0% | 0% | 0% | 100%
testapps/HelloWorldWebApp0% | 0% | 0% | 0% | 100%
testapps/TestBeanstalkWebApp0% | 0% | 0% | 0% | 100%
testapps/FlattenDependencyTestProjects0% | 0% | 0% | 0% | 100%
testapps/ServerlessWithYamlFunction0% | 0% | 0% | 0% | 100%
testapps/DependencyCheckTestProjects0% | 0% | 0% | 0% | 100%
testapps/TemplateSubstitutionTestProjects0% | 0% | 0% | 0% | 100%
testapps/TestLayerExample0% | 0% | 0% | 0% | 100%
testapps/TestLayerServerless0% | 0% | 0% | 0% | 100%
testapps/TestPowerShellParallelTest0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static async Task CreateOrUpdateTaskDefinition()
in src/Amazon.ECS.Tools/ECSUtilities.cs
425 104 6
private UpdateFunctionConfigurationRequest CreateConfigurationRequestIfDifferent()
in src/Amazon.Lambda.Tools/Commands/UpdateFunctionConfigCommand.cs
186 50 2
protected override async Task PerformActionAsync()
in src/Amazon.Lambda.Tools/Commands/DeployServerlessCommand.cs
200 40 0
protected override async Task PerformActionAsync()
in src/Amazon.Lambda.Tools/Commands/DeployFunctionCommand.cs
236 34 0
internal void ParseCommandArguments()
in src/Amazon.ECS.Tools/Commands/CommandProperties.cs
66 32 1
public int Publish()
in src/Amazon.Lambda.Tools/LambdaDotNetCLIWrapper.cs
159 30 8
protected override async Task PerformActionAsync()
in src/Amazon.ElasticBeanstalk.Tools/Commands/DeployEnvironmentCommand.cs
176 30 0
internal void ParseCommandArguments()
in src/Amazon.ElasticBeanstalk.Tools/Commands/CommandProperties.cs
56 27 1
private async Task CreateOrUpdateService()
in src/Amazon.ECS.Tools/Commands/DeployServiceCommand.cs
120 23 4
protected override void ParseCommandArguments()
in src/Amazon.Lambda.Tools/Commands/UpdateFunctionConfigCommand.cs
49 22 1
private void AddAdditionalOptions()
in src/Amazon.ElasticBeanstalk.Tools/Commands/DeployEnvironmentCommand.cs
110 20 3
public static string ProcessTemplateSubstitions()
in src/Amazon.Lambda.Tools/LambdaUtilities.cs
94 19 4
protected override void ParseCommandArguments()
in src/Amazon.Lambda.Tools/Commands/DeployFunctionCommand.cs
46 19 1
protected override void ParseCommandArguments()
in src/Amazon.Lambda.Tools/Commands/DeployServerlessCommand.cs
44 18 1
private async Task CreateRuntimePackageStoreLayerZipFile()
in src/Amazon.Lambda.Tools/Commands/PublishLayerCommand.cs
113 18 2
public static bool CreateApplicationBundle()
in src/Amazon.Lambda.Tools/LambdaPackager.cs
74 17 12
protected override void ParseCommandArguments()
in src/Amazon.Lambda.Tools/Commands/PackageCommand.cs
42 17 1
private async Task ProcessUpdatableResourceAsync()
in src/Amazon.Lambda.Tools/TemplateProcessor/TemplateProcessorManager.cs
71 16 3
protected override async Task PerformActionAsync()
in src/Amazon.Lambda.Tools/Commands/GetFunctionConfigCommand.cs
70 16 0
public static CommandOptions ParseArguments()
in src/Amazon.Common.DotNetCli.Tools/Options/CommandLineParser.cs
66 16 2