microsoft / IgniteTheTour
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 402 units with 5,693 lines of code in units (42.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 13 simple units (803 lines of code)
    • 389 very simple units (4,890 lines of code)
0% | 0% | 0% | 14% | 85%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
js0% | 0% | 0% | 23% | 76%
cs0% | 0% | 0% | 4% | 95%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
DEV - Building your Applications for the Cloud/DEV100% | 0% | 0% | 14% | 85%
MIG - Migrating Applications to the Cloud/MIG400% | 0% | 0% | 15% | 84%
MIG - Migrating Applications to the Cloud/MIG500% | 0% | 0% | 16% | 83%
SRE - Operating applications and infrastructure in the cloud/SRE400% | 0% | 0% | 16% | 83%
DEV - Building your Applications for the Cloud/DEV500% | 0% | 0% | 17% | 82%
DEV - Building your Applications for the Cloud/DEV200% | 0% | 0% | 34% | 65%
DAT - Getting the most out of your data/DAT200% | 0% | 0% | 0% | 100%
DAT - Getting the most out of your data/DAT300% | 0% | 0% | 0% | 100%
DAT - Getting the most out of your data/DAT100% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
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
public static ParsedArgs Parse()
in DEV - Building your Applications for the Cloud/DEV50/src/TailwindTraderServerless/CLI/ParsedArgs.cs
28 8 1
static void Main()
in DEV - Building your Applications for the Cloud/DEV50/src/TailwindTraderServerless/CLI/Program.cs
37 8 1
async function start()
in SRE - Operating applications and infrastructure in the cloud/SRE40/setup/src/product-service/src/index.js
38 8 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 async Task GetSkuAsync()
in DEV - Building your Applications for the Cloud/DEV50/src/TailwindTraderServerless/CLI/Get.cs
40 6 1
public static SkuNotification Create()
in DEV - Building your Applications for the Cloud/DEV50/src/TailwindTraderServerless/Model/SkuNotification.cs
29 6 2
getInventory()
in DEV - Building your Applications for the Cloud/DEV10/src/frontend/src/ProductTable.js
33 5 0
public void ConfigureServices()
in DEV - Building your Applications for the Cloud/DEV10/src/inventory-service/InventoryService.Api/Startup.cs
43 5 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
getInventory()
in MIG - Migrating Applications to the Cloud/MIG40/src/frontend/src/ProductTable.js
33 5 0
public void ConfigureServices()
in MIG - Migrating Applications to the Cloud/MIG40/src/inventory-service/InventoryService.Api/Startup.cs
43 5 1
getInventory()
in MIG - Migrating Applications to the Cloud/MIG50/src/frontend/src/ProductTable.js
33 5 0