aws-samples / sql-based-etl-on-amazon-eks
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 29 units with 463 lines of code in units (26.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (91 lines of code)
    • 27 very simple units (372 lines of code)
0% | 0% | 0% | 19% | 80%
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% | 0% | 20% | 79%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/lib/cdk_infra0% | 0% | 0% | 26% | 73%
source/lib/util0% | 0% | 0% | 33% | 66%
source/lib0% | 0% | 0% | 0% | 100%
deployment/cdk-solution-helper0% | 0% | 0% | 0% | 100%
deployment/app_code/job0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def load_yaml_replace_var_local()
in spark-on-eks/source/lib/util/manifest_reader.py
22 6 4
def __init__()
in spark-on-eks/source/lib/cdk_infra/spark_permission.py
69 6 8
def __init__()
in spark-on-eks/source/lib/cdk_infra/eks_service_account.py
27 5 6
def load_yaml_replace_var_remotely()
in spark-on-eks/source/lib/util/manifest_reader.py
14 4 3
def parse_data_from_kafka_message()
in spark-on-eks/deployment/app_code/job/msk_consumer.py
8 4 2
def load_yaml_local()
in spark-on-eks/source/lib/util/manifest_reader.py
17 3 2
function setParameter()
in spark-on-eks/deployment/cdk-solution-helper/index.js
16 3 1
def __init__()
in spark-on-eks/source/lib/spark_on_eks_stack.py
87 2 5
def load_yaml_remotely()
in spark-on-eks/source/lib/util/manifest_reader.py
12 2 2
function assetRef()
in spark-on-eks/deployment/cdk-solution-helper/index.js
7 2 1
def code_bucket()
in spark-on-eks/source/lib/spark_on_eks_stack.py
2 1 1
def argo_url()
in spark-on-eks/source/lib/spark_on_eks_stack.py
2 1 1
def jhub_url()
in spark-on-eks/source/lib/spark_on_eks_stack.py
2 1 1
def jhub_cf()
in spark-on-eks/source/lib/cloud_front_stack.py
2 1 1
def argo_cf()
in spark-on-eks/source/lib/cloud_front_stack.py
2 1 1
def __init__()
in spark-on-eks/source/lib/cloud_front_stack.py
5 1 7
def add_distribution()
in spark-on-eks/source/lib/cloud_front_stack.py
1 1 0
def alb_created()
in spark-on-eks/source/lib/cdk_infra/eks_base_app.py
2 1 1
def __init__()
in spark-on-eks/source/lib/cdk_infra/eks_base_app.py
57 1 5
def jupyter_sa()
in spark-on-eks/source/lib/cdk_infra/spark_permission.py
2 1 1