aws-samples / amazon-ecs-mythicalmysfits-workshop
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 67 units with 621 lines of code in units (10.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 8 medium size units (200 lines of code)
    • 17 small units (248 lines of code)
    • 42 very small units (173 lines of code)
0% | 0% | 32% | 39% | 27%
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% | 32% | 39% | 27%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
workshop-3/app0% | 0% | 28% | 41% | 29%
workshop-2/ws3-start0% | 0% | 34% | 40% | 25%
workshop-2/app0% | 0% | 35% | 41% | 23%
workshop-1/app0% | 0% | 35% | 41% | 23%
workshop-2/Lab-30% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def queryMysfits()
in workshop-2/app/monolith-service/service/mysfitsTableClient.py
27 2 1
def queryMysfits()
in workshop-2/ws3-start/app/monolith-service/service/mysfitsTableClient.py
27 2 1
def queryMysfits()
in workshop-3/app/monolith-service/service/mysfitsTableClient.py
27 2 1
def queryMysfits()
in workshop-1/app/monolith-service/service/mysfitsTableClient.py
27 2 1
def getMysfit()
in workshop-2/app/monolith-service/service/mysfitsTableClient.py
23 1 1
def getMysfit()
in workshop-2/ws3-start/app/monolith-service/service/mysfitsTableClient.py
23 1 1
def getMysfit()
in workshop-3/app/monolith-service/service/mysfitsTableClient.py
23 1 1
def getMysfit()
in workshop-1/app/monolith-service/service/mysfitsTableClient.py
23 1 1
def getAllMysfits()
in workshop-2/app/monolith-service/service/mysfitsTableClient.py
16 7 0
def getAllMysfits()
in workshop-2/ws3-start/app/monolith-service/service/mysfitsTableClient.py
16 7 0
def like_mysfit()
in workshop-3/app/like-service/service/mysfits_like.py
16 4 1
def getAllMysfits()
in workshop-3/app/monolith-service/service/mysfitsTableClient.py
16 7 0
def getAllMysfits()
in workshop-1/app/monolith-service/service/mysfitsTableClient.py
16 7 0
def getMysfits()
in workshop-2/app/monolith-service/service/mythicalMysfitsService.py
14 2 0
def likeMysfit()
in workshop-2/app/monolith-service/service/mysfitsTableClient.py
14 1 1
def adoptMysfit()
in workshop-2/app/monolith-service/service/mysfitsTableClient.py
14 1 1
def getMysfits()
in workshop-2/ws3-start/app/monolith-service/service/mythicalMysfitsService.py
14 2 0
def likeMysfit()
in workshop-2/ws3-start/app/monolith-service/service/mysfitsTableClient.py
14 1 1
def adoptMysfit()
in workshop-2/ws3-start/app/monolith-service/service/mysfitsTableClient.py
14 1 1
def getMysfits()
in workshop-3/app/monolith-service/service/mythicalMysfitsService.py
14 2 0