aws-samples / hcls-data-lake
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 43 units with 696 lines of code in units (50.7% 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)
    • 5 simple units (186 lines of code)
    • 38 very simple units (510 lines of code)
0% | 0% | 0% | 26% | 73%
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% | 26% | 73%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
old_reference0% | 0% | 0% | 59% | 40%
lib0% | 0% | 0% | 25% | 74%
er7_to_json_service0% | 0% | 0% | 31% | 68%
ingest_er7_service0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
staging_service0% | 0% | 0% | 0% | 100%
auth_service0% | 0% | 0% | 0% | 100%
core_infrastructure0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def add_child_element()
in old_reference/er7_to_json.py
21 9 2
def __add_child_element()
in er7_to_json_service/parse_er7_lambda.py
21 8 2
def sync_lambda_function()
in lib/lambda_util.py
20 7 2
def lambda_handler()
in old_reference/er7_to_json.py
98 7 2
26 6 3
def deploy()
in core_infrastructure/core_setup.py
10 5 1
def get_pid_component_value()
in old_reference/er7_to_json.py
3 5 2
def lambda_handler()
in ingest_er7_service/ingest_er7_lambda.py
44 5 2
def deploy()
in staging_service/staging_setup.py
13 4 2
31 4 4
def stack_exists()
in lib/cf_util.py
8 4 1
def main()
in deploy_services.py
40 4 0
def get_pid_codes()
in old_reference/er7_to_json.py
22 4 1
def get_global_id()
in old_reference/er7_to_json.py
23 4 1
def lambda_handler()
in old_reference/hl7_retrieve_msg.py
22 4 2
def lambda_handler()
in er7_to_json_service/prepare_er7_lambda.py
9 4 2
def deploy()
in er7_to_json_service/er7_to_json_setup.py
11 4 2
def deploy()
in ingest_er7_service/ingest_er7_setup.py
16 4 4
def deploy()
in auth_service/auth_setup.py
10 4 2
def get_output_value()
in lib/cf_util.py
8 3 2