aws-cloudformation / aws-cloudformation-resource-providers-ssm
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 336 units with 4,461 lines of code in units (57.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (135 lines of code)
    • 13 simple units (310 lines of code)
    • 319 very simple units (4,016 lines of code)
0% | 0% | 3% | 6% | 90%
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% | 3% | 6% | 90%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-ssm-patchbaseline0% | 0% | 6% | 12% | 81%
aws-ssm-association0% | 0% | 7% | 0% | 92%
aws-ssm-resourcedatasync0% | 0% | 5% | 3% | 90%
aws-ssm-document0% | 0% | 3% | 2% | 94%
aws-ssm-parameter0% | 0% | 0% | 16% | 83%
aws-ssm-opsmetadata0% | 0% | 0% | 17% | 82%
aws-ssm-maintenancewindowtask0% | 0% | 0% | 4% | 95%
aws-ssm-maintenancewindowtarget0% | 0% | 0% | 7% | 92%
aws-ssm-maintenancewindow0% | 0% | 0% | 5% | 94%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public BaseHandlerException translateFromServiceException()
in aws-ssm-association/src/main/java/com/amazonaws/ssm/association/translator/ExceptionTranslator.java
38 16 3
RuntimeException getCfnException()
in aws-ssm-document/src/main/java/com/amazonaws/ssm/document/DocumentExceptionTranslator.java
24 16 4
public static ProgressEvent handleException()
in aws-ssm-patchbaseline/src/main/java/software/amazon/ssm/patchbaseline/Resource.java
47 12 4
private boolean isRDSStabilized()
in aws-ssm-resourcedatasync/src/main/java/software/amazon/ssm/resourcedatasync/CreateHandler.java
26 11 4
public BaseHandlerException translateFromServiceException()
in aws-ssm-maintenancewindowtarget/src/main/java/software/amazon/ssm/maintenancewindowtarget/translator/ExceptionTranslator.java
28 8 3
public BaseHandlerException translateFromServiceException()
in aws-ssm-maintenancewindowtask/src/main/java/software/amazon/ssm/maintenancewindowtask/translator/ExceptionTranslator.java
28 8 3
public BaseHandlerException translateFromServiceException()
in aws-ssm-maintenancewindow/src/main/java/software/amazon/ssm/maintenancewindow/translator/ExceptionTranslator.java
21 8 2
private PutParameterResponse createResource()
in aws-ssm-parameter/src/main/java/com/amazonaws/ssm/parameter/CreateHandler.java
20 7 2
private DeleteParameterResponse deleteResource()
in aws-ssm-parameter/src/main/java/com/amazonaws/ssm/parameter/DeleteHandler.java
20 7 2
private PutParameterResponse updateResource()
in aws-ssm-parameter/src/main/java/com/amazonaws/ssm/parameter/UpdateHandler.java
20 7 2
public ProgressEvent handleRequest()
in aws-ssm-patchbaseline/src/main/java/software/amazon/ssm/patchbaseline/UpdateHandler.java
64 7 4
private CreateOpsMetadataResponse createResource()
in aws-ssm-opsmetadata/src/main/java/com/amazonaws/ssm/opsmetadata/CreateHandler.java
20 7 2
private DeleteOpsMetadataResponse deleteResource()
in aws-ssm-opsmetadata/src/main/java/com/amazonaws/ssm/opsmetadata/DeleteHandler.java
20 7 2
private Map convertResourceTagsToMap()
in aws-ssm-patchbaseline/src/main/java/software/amazon/ssm/patchbaseline/TagHelper.java
21 6 3
private ResourceStatus translateStatus()
in aws-ssm-document/src/main/java/com/amazonaws/ssm/document/DocumentResponseModelTranslator.java
16 6 1
private UpdateOpsMetadataResponse updateResource()
in aws-ssm-opsmetadata/src/main/java/com/amazonaws/ssm/opsmetadata/UpdateHandler.java
18 6 2
static ResourceModel createResourceModelFromResourceDataSyncItem()
in aws-ssm-resourcedatasync/src/main/java/software/amazon/ssm/resourcedatasync/Translator.java
14 6 1
protected ProgressEvent handleRequest()
in aws-ssm-parameter/src/main/java/com/amazonaws/ssm/parameter/CreateHandler.java
34 5 5
protected static boolean stabilize()
in aws-ssm-parameter/src/main/java/com/amazonaws/ssm/parameter/BaseHandlerStd.java
19 5 5
public ProgressEvent handleRequest()
in aws-ssm-association/src/main/java/com/amazonaws/ssm/association/InProgressHandler.java
37 5 4