aws-samples / net-modernization
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 216 units with 2,121 lines of code in units (3.8% of code).
    • 0 very long units (0 lines of code)
    • 6 long units (396 lines of code)
    • 12 medium size units (436 lines of code)
    • 39 small units (517 lines of code)
    • 159 very small units (772 lines of code)
0% | 18% | 20% | 24% | 36%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 25% | 18% | 23% | 32%
cs0% | 0% | 26% | 26% | 46%
py0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
MonolithicApplication/src0% | 21% | 25% | 22% | 30%
FrontEnd/src0% | 22% | 17% | 24% | 35%
BasketLambda/src0% | 0% | 37% | 19% | 43%
InventoryService/src0% | 0% | 0% | 38% | 61%
Locust/src0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
function binlMD5()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
88 2 2
function binlMD5()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
88 2 2
(function (global, factory)()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
58 23 2
(function (global, factory)()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
58 23 2
function report()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
52 26 1
function report()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
52 26 1
function conflictDetection()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
49 6 0
function conflictDetection()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
49 6 0
function detectSvgConflicts()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
47 7 1
function detectSvgConflicts()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
47 7 1
public async Task FunctionHandler()
in BasketLambda/src/Function.cs
46 5 2
function detectWebfontConflicts()
in MonolithicApplication/src/build/fontawesome-free/js/conflict-detection.js
35 3 0
function detectWebfontConflicts()
in FrontEnd/src/fontawesome-free/js/conflict-detection.js
35 3 0
public async Task PostLogin()
in MonolithicApplication/src/Controllers/UserController.cs
29 5 1
public async Task PutUnicorn()
in MonolithicApplication/src/Controllers/UnicornController.cs
28 5 2
public async Task PutUnicornBasket()
in MonolithicApplication/src/Controllers/BasketController.cs
28 5 2
public async Task PostUser()
in MonolithicApplication/src/Controllers/UserController.cs
22 5 1
success: function()
in FrontEnd/src/controllers/basket.js
21 6 1
public void Configure()
in InventoryService/src/Startup.cs
19 2 2
public void ConfigureServices()
in InventoryService/src/Startup.cs
18 2 1