microsoft / XamlBehaviors
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 186 units with 2,290 lines of code in units (27.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (97 lines of code)
    • 25 simple units (808 lines of code)
    • 159 very simple units (1,385 lines of code)
0% | 0% | 4% | 35% | 60%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cs0% | 0% | 6% | 39% | 53%
cpp0% | 0% | 0% | 28% | 71%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions0% | 0% | 9% | 46% | 44%
src/BehaviorsSDKManaged/Microsoft.Xaml.Interactivity0% | 0% | 0% | 35% | 64%
src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity0% | 0% | 0% | 47% | 52%
src/BehaviorsSDKNative/Microsoft.Xaml.Interactions0% | 0% | 0% | 16% | 83%
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%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private static bool Compare()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/DataTriggerBehavior.cs
52 18 3
private void UpdateMethodDescriptors()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/CallMethodAction.cs
45 16 0
private static bool EvaluateComparable()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/DataTriggerBehavior.cs
35 10 3
public object Execute()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Media/ControlStoryboardAction.cs
48 10 2
private void BehaviorCollection_VectorChanged()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactivity/BehaviorCollection.cs
52 10 2
void BehaviorCollection::OnVectorChanged()
in src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity/BehaviorCollection.cpp
59 10 2
private void UpdatePropertyValue()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/ChangePropertyAction.cs
47 9 1
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
public object Execute()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/CallMethodAction.cs
42 8 2
private static IEnumerable GetDependencyProperties()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/DataBindingHelper.cs
25 8 1
private void RegisterEvent()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/EventTriggerBehavior.cs
38 8 1
private void OnContainerContentChanging()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/IncrementalUpdateBehavior.cs
34 8 2
public void CachePhaseElement()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/IncrementalUpdateBehavior.cs
37 8 2
public void UncachePhaseElement()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/IncrementalUpdateBehavior.cs
33 8 2
public static Object Convert()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/TypeConverterHelper.cs
35 8 2
private MethodDescriptor FindBestMethod()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/CallMethodAction.cs
21 7 1
public object Execute()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions/Core/GoToStateAction.cs
30 7 2
private static bool ShouldContinueTreeWalk()
in src/BehaviorsSDKManaged/Microsoft.Xaml.Interactivity/VisualStateUtilities.cs
20 7 1
bool VisualStateUtilities::ShouldContinueTreeWalk()
in src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity/VisualStateUtilities.cpp
16 7 1