aws-samples / connect-task-creation-for-voicemail
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 12 units with 225 lines of code in units (77.9% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (119 lines of code)
    • 1 medium size units (26 lines of code)
    • 4 small units (54 lines of code)
    • 5 very small units (26 lines of code)
0% | 52% | 11% | 24% | 11%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 52% | 11% | 24% | 11%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
record_comprend_task0% | 100% | 0% | 0% | 0%
assets0% | 34% | 16% | 33% | 16%
Alternative Visuals
Longest Units
Top 12 longest units
Unit# linesMcCabe index# params
def __init__()
in record_comprend_task/record_comprend_task_stack.py
63 3 4
def callStartTaskLambda()
in assets/ComprehendTask.py
56 4 6
def lambda_handler()
in assets/ComprehendTask.py
26 8 2
def update_contactID()
in assets/ComprehendTask.py
17 2 3
def put_contactID()
in assets/TrackContactTask.py
14 2 5
def put_contactID()
in assets/ComprehendTask.py
12 2 3
def get_Entities()
in assets/ComprehendTask.py
11 4 1
def get_KeyPhrase()
in assets/ComprehendTask.py
9 2 1
def get_isTaskCreated()
in assets/ComprehendTask.py
7 2 2
def create_presigned_url()
in assets/ComprehendTask.py
5 1 3
def split_at()
in assets/ComprehendTask.py
3 1 3
def lambda_handler()
in assets/TrackContactTask.py
2 1 2