microsoft / MTC_AMP
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 65 units with 481 lines of code in units (55.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (52 lines of code)
    • 9 small units (155 lines of code)
    • 54 very small units (274 lines of code)
0% | 0% | 10% | 32% | 56%
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% | 10% | 32% | 56%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Collections0% | 0% | 21% | 66% | 11%
Views0% | 0% | 27% | 18% | 54%
UX/Services0% | 0% | 0% | 49% | 50%
Views/Commands0% | 0% | 0% | 39% | 60%
Services0% | 0% | 0% | 0% | 100%
Views/Triggers0% | 0% | 0% | 0% | 100%
ViewModels0% | 0% | 0% | 0% | 100%
Views/Converters0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected override void InsertItem()
in AMP/Collections/SortedObservableCollection.cs
29 6 2
23 8 3
public void Sort()
in AMP/Collections/SortedObservableCollection.cs
18 3 2
public void Sort()
in AMP/Collections/SortedObservableCollection.cs
18 3 2
public void Sort()
in AMP/Collections/SortedObservableCollection.cs
18 3 2
public void Sort()
in AMP/Collections/SortedObservableCollection.cs
18 3 2
public void Sort()
in AMP/Collections/SortedObservableCollection.cs
18 3 2
public void Configure()
in AMP/UX/Services/FrameNavigationService.cs
18 3 2
public virtual void NavigateTo()
in AMP/UX/Services/FrameNavigationService.cs
16 2 2
internal static void StateChanged()
in AMP/Views/StateHelper.cs
16 3 2
private static void OnItemClick()
in AMP/Views/Commands/ItemClickCommand.cs
15 7 2
public static async Task ClearAsync()
in AMP/Services/ILoggingService.cs
10 4 0
public bool RemoveBackEntry()
in AMP/UX/Services/FrameNavigationService.cs
10 2 0
public void Information()
in AMP/Services/ILoggingService.cs
9 3 1
9 2 1
private async void Model_StateChanged()
in AMP/Views/Triggers/VisualStateTrigger.cs
9 1 2
private void ApplySort()
in AMP/Collections/SortedObservableCollection.cs
8 2 1
public void GoBack()
in AMP/UX/Services/FrameNavigationService.cs
8 2 0
private async void AsyncUserControl_Loaded()
in AMP/Views/AsyncUserControl.cs
8 2 2
public void Debug()
in AMP/Services/ILoggingService.cs
7 3 1