microsoft / XamlBehaviors
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 186 units with 2,290 lines of code in units (27.3% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (163 lines of code)
    • 30 medium size units (916 lines of code)
    • 40 small units (598 lines of code)
    • 113 very small units (613 lines of code)
0% | 7% | 40% | 26% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 6% | 48% | 19% | 25%
cpp0% | 9% | 25% | 46% | 18%
h0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity0% | 30% | 11% | 47% | 10%
src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions0% | 4% | 62% | 13% | 19%
src/BehaviorsSDKManaged/Microsoft.Xaml.Interactivity0% | 13% | 23% | 43% | 19%
src/BehaviorsSDKNative/Microsoft.Xaml.Interactions0% | 0% | 25% | 38% | 35%
src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions.Design0% | 0% | 0% | 0% | 100%
src/BehaviorsSDKNative/Microsoft.Xaml.Interactions.Design0% | 0% | 0% | 0% | 100%
src/BehaviorsSDKManaged/Microsoft.Xaml.Interactivity.Design0% | 0% | 0% | 0% | 100%
src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity.Design0% | 0% | 0% | 0% | 100%
src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions.DesignTools0% | 0% | 0% | 0% | 100%
src/BehaviorsSDKManaged/Microsoft.Xaml.Interactivity.DesignTools0% | 0% | 0% | 0% | 100%
src/BehaviorsSDKNative/Microsoft.Xaml.Interactions.DesignTools0% | 0% | 0% | 0% | 100%
src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity.DesignTools0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
void BehaviorCollection::OnVectorChanged()
in src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity/BehaviorCollection.cpp
59 10 2
private static bool Compare()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/DataTriggerBehavior.cs
52 18 3
private void BehaviorCollection_VectorChanged()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactivity/BehaviorCollection.cs
52 10 2
public object Execute()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Media/ControlStoryboardAction.cs
48 10 2
private void UpdatePropertyValue()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/ChangePropertyAction.cs
47 9 1
private void UpdateMethodDescriptors()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/CallMethodAction.cs
45 16 0
public object Execute()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/CallMethodAction.cs
42 8 2
public object Execute()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/NavigateToPageAction.cs
40 9 2
void IncrementalUpdateBehavior::IncrementalUpdater::OnContainerContentChanging()
in src/BehaviorsSDKNative/Microsoft.Xaml.Interactions/IncrementalUpdateBehavior.cpp
39 9 2
private void RegisterEvent()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/EventTriggerBehavior.cs
38 8 1
public void CachePhaseElement()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/IncrementalUpdateBehavior.cs
37 8 2
private static bool EvaluateComparable()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/DataTriggerBehavior.cs
35 10 3
public static Object Convert()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/TypeConverterHelper.cs
35 8 2
private void OnContainerContentChanging()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/IncrementalUpdateBehavior.cs
34 8 2
public void UncachePhaseElement()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/IncrementalUpdateBehavior.cs
33 8 2
private void UnregisterEvent()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/EventTriggerBehavior.cs
30 6 1
public object Execute()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/GoToStateAction.cs
30 7 2
public object Execute()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/InvokeCommandAction.cs
30 5 2
public object Execute()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Media/PlaySoundAction.cs
26 4 2
public static Control FindNearestStatefulControl()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactivity/VisualStateUtilities.cs
26 6 1