aws-samples / govern-amazon-quicksight-with-okta
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 23 units with 472 lines of code in units (77.1% 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 (26 lines of code)
    • 21 very simple units (446 lines of code)
0% | 0% | 0% | 5% | 94%
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% | 5% | 94%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/pkg0% | 0% | 0% | 9% | 90%
cdk_modules/qs_governance0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def handler()
in src/pkg/qs_asset_gov.py
15 7 2
def __post_init__()
in src/pkg/qs_user_gov.py
11 6 1
def apply_dataset_governance()
in src/pkg/qs_asset_gov.py
28 5 2
def reset_dataset_permissions()
in src/pkg/qs_asset_gov.py
26 5 2
def update_memberships()
in src/pkg/qs_user_gov.py
20 5 1
def get_all_datasets()
in src/pkg/qs_asset_gov.py
12 4 1
def get_asset_manifest()
in src/pkg/qs_asset_gov.py
11 4 1
def get_user_manifest()
in src/pkg/qs_user_gov.py
12 4 1
def update_role()
in src/pkg/qs_user_gov.py
19 4 1
def __init__()
in cdk_modules/qs_governance/qs_governance_stack.py
184 3 4
def build_user_governance_manifest()
in src/pkg/get_okta_info.py
16 3 1
def get_dataset_id()
in src/pkg/qs_asset_gov.py
7 3 2
def handler()
in src/pkg/qs_user_gov.py
11 3 2
def apply_user_governance()
in src/pkg/qs_user_gov.py
7 3 1
def register_if_not_exists_user()
in src/pkg/qs_user_gov.py
19 3 1
def create_if_not_exists_groups()
in src/pkg/qs_user_gov.py
12 3 1
def handler()
in src/pkg/get_okta_info.py
10 2 2
def create_if_not_exists_namespace()
in src/pkg/qs_user_gov.py
9 2 1
def get_memberships()
in src/pkg/qs_user_gov.py
10 2 1
def get_users()
in src/pkg/get_okta_info.py
11 1 0