aws-cloudformation / aws-cloudformation-resource-providers-imagebuilder
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 151 units with 1,759 lines of code in units (57.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (216 lines of code)
    • 8 simple units (198 lines of code)
    • 140 very simple units (1,345 lines of code)
0% | 0% | 12% | 11% | 76%
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
java0% | 0% | 12% | 11% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
distribution-configuration/src0% | 0% | 22% | 7% | 70%
image-pipeline/src0% | 0% | 24% | 7% | 67%
infrastructure-configuration/src0% | 0% | 25% | 8% | 66%
image/src0% | 0% | 0% | 24% | 75%
image-recipe/src0% | 0% | 0% | 10% | 89%
container-recipe/src0% | 0% | 0% | 10% | 89%
component/src0% | 0% | 0% | 12% | 87%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public ProgressEvent handleRequest()
in distribution-configuration/src/main/java/software/amazon/imagebuilder/distributionconfiguration/UpdateHandler.java
72 19 4
public ProgressEvent handleRequest()
in infrastructure-configuration/src/main/java/software/amazon/imagebuilder/infrastructureconfiguration/UpdateHandler.java
72 19 4
public ProgressEvent handleRequest()
in image-pipeline/src/main/java/software/amazon/imagebuilder/imagepipeline/UpdateHandler.java
72 19 4
private ProgressEvent stabilizeImageCreation()
in image/src/main/java/software/amazon/imagebuilder/image/CreateHandler.java
37 7 3
private ProgressEvent fetchImageRecipeAndAssertExists()
in image-recipe/src/main/java/software/amazon/imagebuilder/imagerecipe/ReadHandler.java
23 6 0
private ProgressEvent fetchImageRecipeAndAssertExists()
in container-recipe/src/main/java/software/amazon/imagebuilder/containerrecipe/ReadHandler.java
23 6 0
private ProgressEvent fetchDistributionConfigurationAndAssertExists()
in distribution-configuration/src/main/java/software/amazon/imagebuilder/distributionconfiguration/ReadHandler.java
23 6 0
private ProgressEvent fetchComponentAndAssertExists()
in component/src/main/java/software/amazon/imagebuilder/component/ReadHandler.java
23 6 0
private ProgressEvent fetchImageAndAssertExists()
in image/src/main/java/software/amazon/imagebuilder/image/ReadHandler.java
23 6 0
private ProgressEvent fetchInfrastructureConfigurationAndAssertExists()
in infrastructure-configuration/src/main/java/software/amazon/imagebuilder/infrastructureconfiguration/ReadHandler.java
23 6 0
private ProgressEvent fetchImagePipelineAndAssertExists()
in image-pipeline/src/main/java/software/amazon/imagebuilder/imagepipeline/ReadHandler.java
23 6 0
static ResourceModel translateForRead()
in image/src/main/java/software/amazon/imagebuilder/image/Translator.java
16 5 2
public ProgressEvent handleRequest()
in image-recipe/src/main/java/software/amazon/imagebuilder/imagerecipe/CreateHandler.java
25 3 4
public ProgressEvent handleRequest()
in container-recipe/src/main/java/software/amazon/imagebuilder/containerrecipe/CreateHandler.java
25 3 4
public ProgressEvent handleRequest()
in distribution-configuration/src/main/java/software/amazon/imagebuilder/distributionconfiguration/CreateHandler.java
25 3 4
static List translateToCfnModelDistributions()
in distribution-configuration/src/main/java/software/amazon/imagebuilder/distributionconfiguration/Translator.java
13 3 1
public ProgressEvent handleRequest()
in component/src/main/java/software/amazon/imagebuilder/component/CreateHandler.java
24 3 4
static List translateForList()
in component/src/main/java/software/amazon/imagebuilder/component/Translator.java
13 3 1
public ProgressEvent handleRequest()
in image/src/main/java/software/amazon/imagebuilder/image/CreateHandler.java
13 3 4
private ProgressEvent createImage()
in image/src/main/java/software/amazon/imagebuilder/image/CreateHandler.java
24 3 2