aws / aws-mobile-analytics-manager-net
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 89 units with 1,403 lines of code in units (67.4% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (235 lines of code)
    • 17 medium size units (511 lines of code)
    • 34 small units (478 lines of code)
    • 34 very small units (179 lines of code)
0% | 16% | 36% | 34% | 12%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 16% | 36% | 34% | 12%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/Delivery0% | 46% | 44% | 0% | 9%
src/Event0% | 0% | 30% | 67% | 2%
src/Session0% | 0% | 44% | 44% | 11%
src/_bcl450% | 0% | 83% | 0% | 16%
src/_bcl350% | 0% | 65% | 23% | 11%
src0% | 0% | 12% | 55% | 31%
src/Model0% | 0% | 0% | 100% | 0%
src/Delivery/Policy0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public void AttemptDelivery()
in src/Delivery/DeliveryClient.cs
61 9 0
private void SubmitEvents()
in src/Delivery/DeliveryClient.cs
60 11 2
private void SubmitEvents()
in src/Delivery/DeliveryClient.cs
57 10 2
public async Task AttemptDeliveryAsync()
in src/Delivery/DeliveryClient.cs
57 9 0
private void SetupSQLiteEventStore()
in src/Delivery/SQLiteEventStore.bcl.cs
39 4 0
public void PutEvent()
in src/Delivery/SQLiteEventStore.bcl.cs
39 4 2
public List GetEvents()
in src/Delivery/SQLiteEventStore.bcl.cs
36 3 2
private async Task DoWorkAsync()
in src/_bcl45/BackgroundRunner.bcl45.cs
35 7 1
public void AddGlobalAttribute()
in src/Event/CustomEvent.cs
35 9 3
private void DoWork()
in src/_bcl35/BackgroundRunner.bcl35.cs
34 6 0
private void RetrieveSessionStorage()
in src/Session/Session.cs
30 4 0
private void EnqueueEventsHelper()
in src/Delivery/DeliveryClient.cs
30 4 1
public void AddGlobalMetric()
in src/Event/CustomEvent.cs
29 6 3
public void Resume()
in src/Session/Session.cs
29 4 0
public long NumberOfEvents()
in src/Delivery/SQLiteEventStore.bcl.cs
29 3 1
27 3 4
public DeliveryClient()
in src/Delivery/DeliveryClient.bcl.cs
27 5 6
public void DeleteEvent()
in src/Delivery/SQLiteEventStore.bcl.cs
25 2 1
public void AddAttribute()
in src/Event/CustomEvent.cs
23 5 2
public void AddGlobalAttribute()
in src/Event/CustomEvent.cs
23 5 2