aws-solutions / aws-devops-monitoring-dashboard
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 121 units with 2,425 lines of code in units (64.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (90 lines of code)
    • 5 simple units (568 lines of code)
    • 114 very simple units (1,767 lines of code)
0% | 0% | 3% | 23% | 72%
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
js0% | 0% | 65% | 0% | 34%
py0% | 0% | 4% | 8% | 86%
ts0% | 0% | 0% | 33% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/lambda/query_runner0% | 0% | 79% | 0% | 20%
source/lambda/quicksight-custom-resources0% | 0% | 4% | 8% | 86%
source/lib0% | 0% | 0% | 100% | 0%
source/lib/deployment-helper0% | 0% | 0% | 0% | 100%
source/lib/database0% | 0% | 0% | 0% | 100%
source/lib/events0% | 0% | 0% | 0% | 100%
source/lib/quicksight-custom-resources0% | 0% | 0% | 0% | 100%
source/lib/solution-helper0% | 0% | 0% | 0% | 100%
source/lambda/solution_helper0% | 0% | 0% | 0% | 100%
source/lambda/event_parser0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def custom_resource_update()
in source/lambda/quicksight-custom-resources/lambda_function.py
41 14 2
await deletePartitionForUpdate()
in source/lambda/query_runner/index.js
49 13 2
constructor()
in source/lib/aws_devops_monitoring_dashboard_stack.ts
493 9 3
def custom_resource_create()
in source/lambda/quicksight-custom-resources/lambda_function.py
29 8 2
def _initialize_identity()
in source/lambda/quicksight-custom-resources/util/quicksight_resource.py
10 7 1
def custom_resource_delete()
in source/lambda/quicksight-custom-resources/lambda_function.py
24 7 2
def _update_using_properties()
in source/lambda/quicksight-custom-resources/util/quicksight_resource.py
12 6 2
def delete_all_resources()
in source/lambda/quicksight-custom-resources/util/quicksight.py
19 5 1
def _update_url()
in source/lambda/quicksight-custom-resources/util/quicksight_resource.py
9 5 1
def get_logger()
in source/lambda/quicksight-custom-resources/util/logging.py
12 4 1
def _get_permissions()
in source/lambda/quicksight-custom-resources/util/analysis.py
16 4 1
def _get_permissions()
in source/lambda/quicksight-custom-resources/util/template.py
15 4 1
def _get_permissions()
in source/lambda/quicksight-custom-resources/util/datasource.py
15 4 1
def _get_permissions()
in source/lambda/quicksight-custom-resources/util/dashboard.py
17 4 1
def __init__()
in source/lambda/quicksight-custom-resources/util/quicksight_application.py
46 4 2
def _get_permissions()
in source/lambda/quicksight-custom-resources/util/dataset.py
19 4 1
constructor()
in source/lib/deployment-helper/alarm_construct.ts
33 3 3
def solution_helper()
in source/lambda/solution_helper/lambda_function.py
6 3 2
def get_level()
in source/lambda/quicksight-custom-resources/util/logging.py
6 3 0
def create()
in source/lambda/quicksight-custom-resources/util/analysis.py
20 3 1