aws / aws-sam-cli-app-templates
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 622 units with 3,688 lines of code in units (33.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 18 medium complex units (392 lines of code)
    • 9 simple units (209 lines of code)
    • 595 very simple units (3,087 lines of code)
0% | 0% | 10% | 5% | 83%
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
py0% | 0% | 19% | 12% | 67%
java0% | 0% | 6% | 0% | 93%
ts0% | 0% | 0% | 35% | 64%
cs0% | 0% | 0% | 0% | 100%
go0% | 0% | 0% | 0% | 100%
rb0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
python3.90% | 0% | 20% | 13% | 65%
python3.80% | 0% | 22% | 14% | 62%
python3.70% | 0% | 24% | 15% | 60%
python3.60% | 0% | 24% | 15% | 60%
java8.al20% | 0% | 6% | 0% | 93%
java80% | 0% | 6% | 0% | 93%
java110% | 0% | 6% | 0% | 93%
nodejs12.x0% | 0% | 0% | 31% | 68%
dotnetcore3.10% | 0% | 0% | 0% | 100%
python3.8-image0% | 0% | 0% | 0% | 100%
python3.9-image0% | 0% | 0% | 0% | 100%
go1.x0% | 0% | 0% | 0% | 100%
java11-image0% | 0% | 0% | 0% | 100%
java8-image0% | 0% | 0% | 0% | 100%
java8.al2-image0% | 0% | 0% | 0% | 100%
ruby2.70% | 0% | 0% | 0% | 100%
go1.x-image0% | 0% | 0% | 0% | 100%
dotnet5.0-image0% | 0% | 0% | 0% | 100%
dotnetcore3.1-image0% | 0% | 0% | 0% | 100%
nodejs14.x0% | 0% | 0% | 0% | 100%
python3.7-image0% | 0% | 0% | 0% | 100%
python3.6-image0% | 0% | 0% | 0% | 100%
ruby2.7-image0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def __unmarshall_model()
in python3.7/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
24 15 3
def __unmarshall_model()
in python3.8/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
24 15 3
def __unmarshall_model()
in python3.6/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
24 15 3
def __unmarshall_model()
in python3.9/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
24 15 3
public boolean equals()
in java8/cookiecutter-aws-sam-eventbridge-hello-java-maven/{{cookiecutter.project_name}}/HelloWorldFunction/src/main/java/model/aws.ec2/AWSEvent.java
18 12 1
public boolean equals()
in java8/cookiecutter-aws-sam-eventbridge-hello-java-gradle/{{cookiecutter.project_name}}/HelloWorldFunction/src/main/java/model/aws.ec2/AWSEvent.java
18 12 1
public boolean equals()
in java11/cookiecutter-aws-sam-eventbridge-hello-java-maven/{{cookiecutter.project_name}}/HelloWorldFunction/src/main/java/model/aws.ec2/AWSEvent.java
18 12 1
public boolean equals()
in java11/cookiecutter-aws-sam-eventbridge-hello-java-gradle/{{cookiecutter.project_name}}/HelloWorldFunction/src/main/java/model/aws.ec2/AWSEvent.java
18 12 1
def marshall()
in python3.7/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
21 12 2
def unmarshall()
in python3.7/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
26 12 3
def marshall()
in python3.8/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
21 12 2
def unmarshall()
in python3.8/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
26 12 3
def marshall()
in python3.6/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
21 12 2
def unmarshall()
in python3.6/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
26 12 3
def marshall()
in python3.9/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
21 12 2
def unmarshall()
in python3.9/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/marshaller.py
26 12 3
public boolean equals()
in java8.al2/cookiecutter-aws-sam-eventbridge-hello-java-maven/{{cookiecutter.project_name}}/HelloWorldFunction/src/main/java/model/aws.ec2/AWSEvent.java
18 12 1
public boolean equals()
in java8.al2/cookiecutter-aws-sam-eventbridge-hello-java-gradle/{{cookiecutter.project_name}}/HelloWorldFunction/src/main/java/model/aws.ec2/AWSEvent.java
18 12 1
def to_dict()
in python3.7/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/aws_event.py
23 9 1
def to_dict()
in python3.7/cookiecutter-aws-sam-eventBridge-python/{{cookiecutter.project_name}}/hello_world_function/model/aws/ec2/ec2_instance_state_change_notification.py
23 9 1