microsoft / IgniteTheTour
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 402 units with 5,693 lines of code in units (42.6% of code).
    • 6 very long units (1,075 lines of code)
    • 5 long units (347 lines of code)
    • 60 medium size units (1,834 lines of code)
    • 77 small units (1,140 lines of code)
    • 254 very small units (1,297 lines of code)
18% | 6% | 32% | 20% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js37% | 6% | 20% | 14% | 20%
cs0% | 5% | 44% | 25% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
DAT - Getting the most out of your data/DAT20100% | 0% | 0% | 0% | 0%
SRE - Operating applications and infrastructure in the cloud/SRE4011% | 16% | 29% | 21% | 21%
DEV - Building your Applications for the Cloud/DEV2034% | 21% | 8% | 18% | 17%
DEV - Building your Applications for the Cloud/DEV109% | 5% | 38% | 20% | 25%
MIG - Migrating Applications to the Cloud/MIG4010% | 0% | 38% | 23% | 27%
MIG - Migrating Applications to the Cloud/MIG5011% | 0% | 39% | 20% | 28%
DAT - Getting the most out of your data/DAT300% | 23% | 22% | 21% | 32%
DEV - Building your Applications for the Cloud/DEV500% | 0% | 50% | 26% | 22%
DAT - Getting the most out of your data/DAT100% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
data()
in DAT - Getting the most out of your data/DAT20/src/mixins/customerData.js
570 1 0
render()
in DEV - Building your Applications for the Cloud/DEV10/src/frontend/src/ProductDetails.js
101 7 0
render()
in DEV - Building your Applications for the Cloud/DEV20/src/ProductDetails.js
101 7 0
render()
in MIG - Migrating Applications to the Cloud/MIG40/src/frontend/src/ProductDetails.js
101 7 0
render()
in MIG - Migrating Applications to the Cloud/MIG50/src/frontend/src/ProductDetails.js
101 7 0
render()
in SRE - Operating applications and infrastructure in the cloud/SRE40/setup/src/frontend/src/ProductDetails.js
101 7 0
public CommentAnalysis GetTextAnalysis()
in DAT - Getting the most out of your data/DAT30/lp3s3-comments-function/CogSvc/TextAnalyser.cs
96 4 2
async function insert()
in SRE - Operating applications and infrastructure in the cloud/SRE40/setup/src/product-service/scripts/genProducts.js
76 2 0
render()
in DEV - Building your Applications for the Cloud/DEV20/src/ProductTable.js
61 3 0
render()
in SRE - Operating applications and infrastructure in the cloud/SRE40/setup/src/frontend/src/ProductTable.js
61 3 0
public static void Main()
in DEV - Building your Applications for the Cloud/DEV10/src/inventory-service/InventoryService.Api/Program.cs
53 4 1
public async Task InitAsync()
in DEV - Building your Applications for the Cloud/DEV50/src/TailwindTraderServerless/DataAccess/InventoryInitializer.cs
47 5 0
public async Task InitAsync()
in DEV - Building your Applications for the Cloud/DEV50/src/TailwindTraderServerless/_DataAccess/InventoryInitializer.cs
47 5 0
public void ConfigureServices()
in SRE - Operating applications and infrastructure in the cloud/SRE40/setup/src/inventory-service/InventoryService.Api/Startup.cs
44 5 1
public void ConfigureServices()
in DEV - Building your Applications for the Cloud/DEV10/src/inventory-service/InventoryService.Api/Startup.cs
43 5 1
public void ConfigureServices()
in MIG - Migrating Applications to the Cloud/MIG40/src/inventory-service/InventoryService.Api/Startup.cs
43 5 1
public void ConfigureServices()
in MIG - Migrating Applications to the Cloud/MIG50/src/inventory-service/InventoryService.Api/Startup.cs
43 5 1
async function start()
in DEV - Building your Applications for the Cloud/DEV10/src/product-service/src/index.js
42 10 0
async function start()
in MIG - Migrating Applications to the Cloud/MIG40/src/product-service/src/index.js
42 10 0
async function start()
in MIG - Migrating Applications to the Cloud/MIG50/src/product-service/src/index.js
42 10 0