microsoft / MTC_WhackAMole.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 176 units with 1,709 lines of code in units (43.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 14 medium size units (383 lines of code)
    • 46 small units (655 lines of code)
    • 116 very small units (671 lines of code)
0% | 0% | 22% | 38% | 39%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 0% | 22% | 38% | 39%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
MoleDeploy.UWPClient0% | 0% | 25% | 45% | 28%
WhackAMole.UWPClient/Models0% | 0% | 40% | 17% | 42%
WhackAMole.UWPClient0% | 0% | 21% | 53% | 25%
WhackAMole.UWPClient/Controls0% | 0% | 44% | 10% | 44%
WhackAMole.UWPClient/Services0% | 0% | 18% | 22% | 59%
WhackAMole.UWPClient/ViewModel0% | 0% | 30% | 33% | 35%
MoleDeploy.Vsts0% | 0% | 0% | 93% | 6%
MoleDeploy.SignalR0% | 0% | 0% | 70% | 29%
WhackAMole.KubeAdmin/Controllers0% | 0% | 0% | 61% | 38%
WhackAMole.KubeAdmin0% | 0% | 0% | 37% | 62%
WhackAMole.MoleCloud0% | 0% | 0% | 42% | 57%
WhackAMole.MoleCloud/Controllers0% | 0% | 0% | 100% | 0%
WhackAMole.KubeServices0% | 0% | 0% | 0% | 100%
WhackAMole.KubeServices/Providers0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private async Task UpdatePodListAsync()
in WhackAMole.UWPClient/Models/WhackSpace.cs
36 11 0
private async Task CreateMoleAsync()
in WhackAMole.UWPClient/Models/WhackSpace.cs
36 1 1
public void UpdatePosition()
in WhackAMole.UWPClient/Controls/MoleControl.cs
33 23 0
private void LayoutDisplayPanel()
in WhackAMole.UWPClient/Controls/MoleControl.cs
33 8 0
private async void OnStateBegin()
in MoleDeploy.UWPClient/MainPage.xaml.cs
32 6 3
public MainPage()
in WhackAMole.UWPClient/MainPage.xaml.cs
31 3 0
public Tuple UpdatePosition()
in WhackAMole.UWPClient/Services/BaseMovementEngine.cs
25 9 2
public async Task UpdateStateAsync()
in WhackAMole.UWPClient/ViewModel/MoleViewModel.cs
25 4 0
private async Task Rotate()
in MoleDeploy.UWPClient/MainPage.xaml.cs
24 2 1
public bool Remove()
in WhackAMole.UWPClient/SynchronizedObservableCollection.cs
23 2 1
private void _timer_Tick()
in WhackAMole.UWPClient/Models/WhackSpace.cs
22 7 1
protected override void OnLaunched()
in MoleDeploy.UWPClient/App.xaml.cs
21 5 1
private async Task SubmitBuild()
in MoleDeploy.UWPClient/MainPage.xaml.cs
21 2 0
protected override void OnLaunched()
in WhackAMole.UWPClient/App.xaml.cs
21 5 1
private void ColorChanged()
in MoleDeploy.UWPClient/MainPage.xaml.cs
20 3 2
public async Task Get()
in WhackAMole.KubeAdmin/Controllers/PodsController.cs
20 5 1
public void Move()
in WhackAMole.UWPClient/SynchronizedObservableCollection.cs
19 1 2
public static implicit operator Color()
in MoleDeploy.UWPClient/HSLColor.cs
18 3 1
private async Task RemoveMoleAsync()
in WhackAMole.UWPClient/Models/WhackSpace.cs
18 1 1
public void Insert()
in WhackAMole.UWPClient/SynchronizedObservableCollection.cs
18 2 2