aws-samples / cloudformation-studio-domain
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 15 units with 205 lines of code in units (57.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (47 lines of code)
    • 9 small units (129 lines of code)
    • 4 very small units (29 lines of code)
0% | 0% | 22% | 62% | 14%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 22% | 62% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 0% | 22% | 62% | 14%
Alternative Visuals
Longest Units
Top 15 longest units
Unit# linesMcCabe index# params
def send()
in cfnresponse.py
26 4 7
def create_studio_domain()
in domain_function.py
21 3 1
def delete_domain()
in domain_function.py
18 4 1
def create_user_profile()
in UserProfile_function.py
17 3 1
def delete_user_profile()
in UserProfile_function.py
16 4 2
def update_user_profile()
in UserProfile_function.py
15 3 3
def update_domain()
in domain_function.py
14 3 2
def handle_delete()
in UserProfile_function.py
13 2 2
def lambda_handler()
in UserProfile_function.py
12 5 2
def lambda_handler()
in domain_function.py
12 5 2
def handle_delete()
in domain_function.py
12 2 2
def handle_update()
in UserProfile_function.py
8 1 2
def handle_create()
in UserProfile_function.py
7 1 2
def handle_create()
in domain_function.py
7 1 2
def handle_update()
in domain_function.py
7 1 2