microsoft / TailwindTraders-Rewards
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 70 units with 1,094 lines of code in units (42.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (58 lines of code)
    • 16 medium size units (509 lines of code)
    • 24 small units (352 lines of code)
    • 29 very small units (175 lines of code)
0% | 5% | 46% | 32% | 15%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 5% | 46% | 32% | 15%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Source/Website/Data_Layer0% | 15% | 43% | 38% | 2%
Source/Website0% | 0% | 43% | 31% | 24%
Source/Function0% | 0% | 60% | 28% | 10%
Source/Function/Models0% | 0% | 0% | 0% | 100%
Source/Function/Extensions0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static void AddCustomer()
in Source/Website/Data_Layer/CustomerData.cs
58 2 1
public static async Task RunOrchestrator()
in Source/Function/EnrollmentVerificator.cs
48 5 1
public static void UpdateCustomer()
in Source/Website/Data_Layer/CustomerData.cs
45 2 1
protected void OnClickAddCustomer()
in Source/Website/Create.aspx.cs
41 3 2
private void MapCustomer()
in Source/Website/Default.aspx.cs
41 7 1
public static async Task Run()
in Source/Function/EnrollmentVerificator.cs
36 5 2
public static void AddOrder()
in Source/Website/Data_Layer/OrdersData.cs
34 2 1
protected void OnClickUpdateCustomer()
in Source/Website/Update.aspx.cs
31 2 2
public static DataTable ExecuteSelect()
in Source/Website/Data_Layer/DataAccessHandler.cs
29 4 2
public static void UpdateOrder()
in Source/Website/Data_Layer/OrdersData.cs
29 2 1
public static void ExecuteNonSelect()
in Source/Website/Data_Layer/DataAccessHandler.cs
27 4 2
protected void Page_Load()
in Source/Website/Default.aspx.cs
27 4 2
public static async Task RunUpdateEnrollmentStatus()
in Source/Function/EnrollmentVerificator.cs
26 2 2
private void BypassLogicAppIfNeeded()
in Source/Website/Default.aspx.cs
26 3 1
public static async Task Run()
in Source/Function/EnrollmentHttpStart.cs
24 3 2
protected void Page_Load()
in Source/Website/Update.aspx.cs
23 5 2
public static void RunSendNotification()
in Source/Function/EnrollmentVerificator.cs
22 2 5
protected void OnClickDeleteCustomer()
in Source/Website/Admin.aspx.cs
19 2 2
protected void SearchCustomer()
in Source/Website/Default.aspx.cs
19 2 2
public static Customer GetCustomerById()
in Source/Website/Data_Layer/CustomerData.cs
18 4 1