aws-cloudformation / aws-cloudformation-resource-providers-frauddetector
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 501 units with 3,931 lines of code in units (54.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (91 lines of code)
    • 44 simple units (886 lines of code)
    • 454 very simple units (2,954 lines of code)
0% | 0% | 2% | 22% | 75%
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% | 22% | 75%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
aws-frauddetector-detector/src0% | 0% | 4% | 27% | 68%
aws-frauddetector-eventtype/src0% | 0% | 4% | 34% | 61%
aws-frauddetector-entitytype/src0% | 0% | 0% | 16% | 83%
aws-frauddetector-label/src0% | 0% | 0% | 16% | 83%
aws-frauddetector-variable/src0% | 0% | 0% | 17% | 82%
aws-frauddetector-outcome/src0% | 0% | 0% | 23% | 76%
common/helpers0% | 0% | 0% | 3% | 96%
common0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def execute_create_detector_handler_work()
in aws-frauddetector-detector/src/aws_frauddetector_detector/handler_workers.py
25 12 3
def _validate_inline_event_variable_for_event_type_update()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/update_worker_helpers.py
33 12 3
def _validate_inline_event_variable_for_update()
in aws-frauddetector-eventtype/src/aws_frauddetector_eventtype/helpers/update_worker_helpers.py
33 12 3
def delete_rules_and_inline_outcomes_for_detector_model()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/delete_worker_helpers.py
23 9 2
def get_model_for_detector()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/model_helpers.py
69 8 3
def get_referenced_resources_for_event_type()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/model_helpers.py
14 8 1
def get_inline_resources_for_event_type()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/model_helpers.py
14 8 1
def execute_create_entity_type_handler_work()
in aws-frauddetector-entitytype/src/aws_frauddetector_entitytype/handler_workers.py
10 8 3
def execute_create_outcome_handler_work()
in aws-frauddetector-outcome/src/aws_frauddetector_outcome/handler_workers.py
10 8 3
def execute_create_event_type_handler_work()
in aws-frauddetector-eventtype/src/aws_frauddetector_eventtype/handler_workers.py
9 8 3
def execute_update_event_type_handler_work()
in aws-frauddetector-eventtype/src/aws_frauddetector_eventtype/handler_workers.py
14 8 4
def get_referenced_resources()
in aws-frauddetector-eventtype/src/aws_frauddetector_eventtype/helpers/model_helpers.py
14 8 1
def get_inline_resources()
in aws-frauddetector-eventtype/src/aws_frauddetector_eventtype/helpers/model_helpers.py
14 8 1
def execute_create_label_handler_work()
in aws-frauddetector-label/src/aws_frauddetector_label/handler_workers.py
10 8 3
def execute_create_variable_handler_work()
in aws-frauddetector-variable/src/aws_frauddetector_variable/handler_workers.py
10 8 3
def update_tags()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/common_helpers.py
15 7 3
def get_outcomes_model_for_given_outcome_names()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/model_helpers.py
43 7 3
def _get_labels_and_return_labels_model()
in aws-frauddetector-detector/src/aws_frauddetector_detector/helpers/model_helpers.py
40 7 3
def execute_update_entity_type_handler_work()
in aws-frauddetector-entitytype/src/aws_frauddetector_entitytype/handler_workers.py
18 7 4
def update_tags()
in aws-frauddetector-entitytype/src/aws_frauddetector_entitytype/helpers/common_helpers.py
15 7 3