aws-samples / nimblestudio-auto-workstation-scheduler
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 107 units with 981 lines of code in units (80.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (21 lines of code)
    • 14 simple units (225 lines of code)
    • 92 very simple units (735 lines of code)
0% | 0% | 2% | 22% | 74%
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% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts0% | 0% | 3% | 28% | 67%
scripts/identity0% | 0% | 0% | 41% | 58%
lambda/launcher0% | 0% | 0% | 16% | 83%
nimble_studio_auto_workstation_scheduler0% | 0% | 0% | 0% | 100%
scripts/utils0% | 0% | 0% | 0% | 100%
lambda/model0% | 0% | 0% | 0% | 100%
lambda0% | 0% | 0% | 0% | 100%
lambda/common0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def validate_sso_id()
in scripts/update_auto_launch_config.py
21 12 1
def search_identity_stores_for_user_name()
in scripts/identity/identity_helper.py
17 9 3
def validate_all_update_params_exist()
in scripts/update_auto_launch_config.py
26 9 1
def get_config()
in scripts/get_auto_launch_config.py
21 8 1
def confirm_delete()
in scripts/delete_auto_launch_config.py
16 8 2
def perform_config_update()
in scripts/update_auto_launch_config.py
16 8 1
def handle_existing_config_updates()
in scripts/update_auto_launch_config.py
20 7 1
def get_users_with_active_streaming_sessions()
in lambda/launcher/workstation_launcher.py
11 6 2
def get_user_details()
in scripts/get_auto_launch_config.py
17 6 2
def get_user_id_from_user_name()
in scripts/get_auto_launch_config.py
13 6 1
def prompt_for_configuration_ids()
in scripts/delete_auto_launch_config.py
15 6 3
def toggle_user_auto_launch_config()
in scripts/toggle_auto_launch_for_users.py
9 6 1
def check_valid_time()
in scripts/update_auto_launch_config.py
9 6 1
def validate_studio_id()
in scripts/update_auto_launch_config.py
13 6 1
def validate_launch_profile()
in scripts/update_auto_launch_config.py
22 6 1
def get_target_launch_minute()
in lambda/model/time_manager.py
11 5 1
def execute_config_deletion()
in scripts/delete_auto_launch_config.py
14 5 1
def prompt_for_input_from_options()
in scripts/utils/prompter.py
14 5 3
def validate_streaming_images()
in scripts/update_auto_launch_config.py
12 5 2
def override_existing_config()
in scripts/update_auto_launch_config.py
14 5 3