aws-samples / codepipeline-lambda-docker-images
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 208 units with 1,808 lines of code in units (32.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (39 lines of code)
    • 12 simple units (373 lines of code)
    • 195 very simple units (1,396 lines of code)
0% | 0% | 2% | 20% | 77%
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% | 2% | 20% | 77%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
CommonLayerCode/datalake-library/python0% | 0% | 2% | 26% | 70%
ApplicationCode/dockerfiles/routing-lambda0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-b-routing0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-a-postupdate-metadata0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-b-postupdate-metadata0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-b-process-data0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-a-process-object0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-b-redrive0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-a-preupdate-metadata0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-b-crawl-data0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-b-check-job0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-a-redrive0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/redrive-lambda0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-a-routing0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-a-error0% | 0% | 0% | 0% | 100%
ApplicationCode/dockerfiles/stage-b-error0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _process_sns_notifications()
in CommonLayerCode/datalake-library/python/datalake_library/octagon/metric.py
39 11 4
def update_pipeline_execution()
in CommonLayerCode/datalake-library/python/datalake_library/octagon/peh.py
125 10 4
def receive_min_max_messages()
in CommonLayerCode/datalake-library/python/datalake_library/interfaces/sqs_interface.py
20 9 3
def __init__()
in CommonLayerCode/datalake-library/python/datalake_library/octagon/config.py
38 9 3
def stage_b_job_status()
in CommonLayerCode/datalake-library/python/datalake_library/transforms/transform_handler.py
16 9 7
def transform_object()
in CommonLayerCode/datalake-library/python/datalake_library/transforms/stage_b_transforms/heavy_transform_blueprint.py
25 8 5
def stage_b_transform()
in CommonLayerCode/datalake-library/python/datalake_library/transforms/transform_handler.py
12 7 5
def copy_object()
in CommonLayerCode/datalake-library/python/datalake_library/interfaces/s3_interface.py
28 6 6
def query_object_metadata_index()
in CommonLayerCode/datalake-library/python/datalake_library/interfaces/dynamo_interface.py
27 6 7
def send_batch_messages_to_fifo_queue()
in CommonLayerCode/datalake-library/python/datalake_library/interfaces/sqs_interface.py
20 6 4
def start_pipeline_execution()
in CommonLayerCode/datalake-library/python/datalake_library/octagon/peh.py
36 6 4
def _check_metric_threshold()
in CommonLayerCode/datalake-library/python/datalake_library/octagon/metric.py
15 6 4
def check_job_status()
in CommonLayerCode/datalake-library/python/datalake_library/transforms/stage_b_transforms/heavy_transform_blueprint.py
11 6 5
def lambda_handler()
in ApplicationCode/dockerfiles/routing-lambda/src/lambda_function.py
54 5 2
def lambda_handler()
in ApplicationCode/dockerfiles/stage-b-routing/src/lambda_function.py
41 5 2
def lambda_handler()
in ApplicationCode/dockerfiles/stage-b-redrive/src/lambda_function.py
24 5 2
def lambda_handler()
in ApplicationCode/dockerfiles/redrive-lambda/src/lambda_function.py
17 5 2
def _fetch_from_event()
in CommonLayerCode/datalake-library/python/datalake_library/configuration/event_configs.py
38 5 1
def delete_objects()
in CommonLayerCode/datalake-library/python/datalake_library/interfaces/s3_interface.py
22 5 3
def create_event()
in CommonLayerCode/datalake-library/python/datalake_library/octagon/event.py
29 5 5