microsoft / TpmRCDecoder
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 90 units with 1,219 lines of code in units (17.6% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (67 lines of code)
    • 18 medium size units (549 lines of code)
    • 20 small units (309 lines of code)
    • 51 very small units (294 lines of code)
0% | 5% | 45% | 25% | 24%
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% | 45% | 25% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
TpmRcDecoder.Universal0% | 5% | 45% | 25% | 24%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected override void OnKeyDown()
in TpmRcDecoder/TpmRcDecoder.Universal/NavMenuListView.cs
67 14 1
private void CommandCode_TextChanged()
in TpmRcDecoder/TpmRcDecoder.Universal/CommandCodes.xaml.cs
48 9 2
public string Decode()
in TpmRcDecoder/TpmRcDecoder.Universal/Decoder.cs
47 11 1
private void AppShell_KeyDown()
in TpmRcDecoder/TpmRcDecoder.Universal/AppShell.xaml.cs
40 19 2
private void ManufacturerCode_TextChanged()
in TpmRcDecoder/TpmRcDecoder.Universal/Manufacturers.xaml.cs
39 7 2
private string DecodeError()
in TpmRcDecoder/TpmRcDecoder.Universal/Decoder.cs
35 8 1
private string DecodeWarning()
in TpmRcDecoder/TpmRcDecoder.Universal/Decoder.cs
31 7 1
private void GenerateOutput()
in TpmRcDecoder/TpmRcDecoder.Universal/RcDecoder.xaml.cs
30 5 0
private void EnsureRootFrame()
in TpmRcDecoder/TpmRcDecoder.Universal/App.xaml.cs
29 6 2
private void CoreDispatcher_AcceleratorKeyActivated()
in TpmRcDecoder/TpmRcDecoder.Universal/NavigationHelper.cs
28 19 2
private string DecodeFormatError()
in TpmRcDecoder/TpmRcDecoder.Universal/Decoder.cs
27 4 1
public static async Task SaveAsync()
in TpmRcDecoder/TpmRcDecoder.Universal/SuspensionManager.cs
27 4 0
private void ListOfCommands_SelectionChanged()
in TpmRcDecoder/TpmRcDecoder.Universal/CommandCodes.xaml.cs
26 4 2
public void OnNavigatedTo()
in TpmRcDecoder/TpmRcDecoder.Universal/NavigationHelper.cs
26 5 1
public static async Task RestoreAsync()
in TpmRcDecoder/TpmRcDecoder.Universal/SuspensionManager.cs
26 5 1
private string DecodeWindowsError()
in TpmRcDecoder/TpmRcDecoder.Universal/Decoder.cs
23 4 1
public NavMenuListView()
in TpmRcDecoder/TpmRcDecoder.Universal/NavMenuListView.cs
23 4 0
public CommandCodes()
in TpmRcDecoder/TpmRcDecoder.Universal/CommandCodes.xaml.cs
22 3 0
public static Dictionary SessionStateForFrame()
in TpmRcDecoder/TpmRcDecoder.Universal/SuspensionManager.cs
22 4 1
public AppShell()
in TpmRcDecoder/TpmRcDecoder.Universal/AppShell.xaml.cs
20 1 0