aws-samples / dcv-session-manager-infrastructure
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 13 units with 367 lines of code in units (83.0% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (58 lines of code)
    • 7 medium size units (234 lines of code)
    • 5 small units (75 lines of code)
    • 0 very small units (0 lines of code)
0% | 15% | 63% | 20% | 0%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 15% | 63% | 20% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
dcv_session_manager_infrastructure0% | 19% | 55% | 25% | 0%
lambda0% | 0% | 100% | 0% | 0%
Alternative Visuals
Longest Units
Top 13 longest units
Unit# linesMcCabe index# params
def create_ef_role()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
58 1 8
def lambda_handler()
in lambda/cert.py
49 10 2
def __init__()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
46 4 5
def create_dcv_role()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
34 1 4
def create_lambda()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
32 1 2
def create_asg()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
29 1 12
def create_security_groups()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
22 1 3
def send_response()
in lambda/cert.py
22 1 4
def create_enginframe()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
20 3 10
def create_alb()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
15 1 2
def create_dcv_linux()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
14 3 5
def create_dcv_windows()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
14 3 5
def create_parameters()
in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py
12 1 1