aws-samples / govern-amazon-quicksight-with-okta
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 23 units with 472 lines of code in units (77.1% of code).
    • 1 very long units (184 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (54 lines of code)
    • 13 small units (180 lines of code)
    • 7 very small units (54 lines of code)
38% | 0% | 11% | 38% | 11%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py38% | 0% | 11% | 38% | 11%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
cdk_modules/qs_governance100% | 0% | 0% | 0% | 0%
src/pkg0% | 0% | 18% | 62% | 18%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def __init__()
in cdk_modules/qs_governance/qs_governance_stack.py
184 3 4
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 register_if_not_exists_user()
in src/pkg/qs_user_gov.py
19 3 1
def update_role()
in src/pkg/qs_user_gov.py
19 4 1
def build_user_governance_manifest()
in src/pkg/get_okta_info.py
16 3 1
def handler()
in src/pkg/qs_asset_gov.py
15 7 2
def get_all_datasets()
in src/pkg/qs_asset_gov.py
12 4 1
def get_user_manifest()
in src/pkg/qs_user_gov.py
12 4 1
def create_if_not_exists_groups()
in src/pkg/qs_user_gov.py
12 3 1
def get_users()
in src/pkg/get_okta_info.py
11 1 0
def get_users_groups()
in src/pkg/get_okta_info.py
11 1 1
def get_asset_manifest()
in src/pkg/qs_asset_gov.py
11 4 1
def __post_init__()
in src/pkg/qs_user_gov.py
11 6 1
def handler()
in src/pkg/qs_user_gov.py
11 3 2
def handler()
in src/pkg/get_okta_info.py
10 2 2
def get_memberships()
in src/pkg/qs_user_gov.py
10 2 1
def create_if_not_exists_namespace()
in src/pkg/qs_user_gov.py
9 2 1
def get_dataset_id()
in src/pkg/qs_asset_gov.py
7 3 2