microsoft / MTC_WindowsSmartInk
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 219 units with 2,325 lines of code in units (40.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 8 simple units (260 lines of code)
    • 211 very simple units (2,065 lines of code)
0% | 0% | 0% | 11% | 88%
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% | 0% | 11% | 88%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
SmartInkLaboratory/ViewModels0% | 0% | 0% | 28% | 71%
Microsoft.MTC.SmartInk0% | 0% | 0% | 14% | 85%
SmartInkLaboratory/Services0% | 0% | 0% | 0% | 100%
SmartInkLaboratory0% | 0% | 0% | 0% | 100%
SmartInkLaboratory/Views0% | 0% | 0% | 0% | 100%
EBC_InkDemo/Views0% | 0% | 0% | 0% | 100%
Microsoft.MTC.SmartInk/Extensions0% | 0% | 0% | 0% | 100%
EBC_InkDemo/ViewModels0% | 0% | 0% | 0% | 100%
SmartInkLaboratory/AI0% | 0% | 0% | 0% | 100%
EBC_InkDemo0% | 0% | 0% | 0% | 100%
EBC_InkDemo/Converters0% | 0% | 0% | 0% | 100%
EBC_InkDemo/Extensions0% | 0% | 0% | 0% | 100%
SmartInkLaboratory/Extensions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public IconMapViewModel()
in WindowsSmartInk/SmartInkLaboratory/ViewModels/IconMapViewModel.cs
43 9 1
public TrainViewModel()
in WindowsSmartInk/SmartInkLaboratory/ViewModels/TrainViewModel.cs
59 8 4
public async Task UpdateTagsAsync()
in WindowsSmartInk/Microsoft.MTC.SmartInk/SmartInkPackage.cs
16 7 1
public TestViewModel()
in WindowsSmartInk/SmartInkLaboratory/ViewModels/TestViewModel.cs
55 7 3
public async Task GetPackageAsync()
in WindowsSmartInk/Microsoft.MTC.SmartInk/LocalAppDataProvider.cs
18 6 1
public async Task SaveMediaAsync()
in WindowsSmartInk/Microsoft.MTC.SmartInk/SmartInkMediaPackage.cs
17 6 2
public async Task RemoveTagAsync()
in WindowsSmartInk/Microsoft.MTC.SmartInk/SmartInkPackage.cs
15 6 1
public ResourceKeysViewModel()
in WindowsSmartInk/SmartInkLaboratory/ViewModels/ResourceKeysViewModel.cs
37 6 5
protected override void OnLaunched()
in WindowsSmartInk/EBC_InkDemo/App.xaml.cs
21 5 1
public static Rect CombineWith()
in WindowsSmartInk/EBC_InkDemo/Extensions/RectExtensions.cs
9 5 2
public MainPage()
in WindowsSmartInk/EBC_InkDemo/Views/MainPage.xaml.cs
56 5 0
public static SoftwareBitmap DrawInk()
in WindowsSmartInk/Microsoft.MTC.SmartInk/Extensions/InkStrokeCollectionExtensions.cs
35 5 5
private static IList ScaleAndTransformStrokes()
in WindowsSmartInk/Microsoft.MTC.SmartInk/Extensions/InkStrokeCollectionExtensions.cs
27 5 3
public static Rect CombineWith()
in WindowsSmartInk/Microsoft.MTC.SmartInk/Extensions/RectExtenstion.cs
9 5 2
public async Task CreatePackageProviderAsync()
in WindowsSmartInk/Microsoft.MTC.SmartInk/LocalAppDataProvider.cs
10 5 2
public async Task AddTagsAsync()
in WindowsSmartInk/Microsoft.MTC.SmartInk/SmartInkPackage.cs
13 5 1
public async Task AddTagAsync()
in WindowsSmartInk/Microsoft.MTC.SmartInk/SmartInkPackage.cs
12 5 2
protected override void OnLaunched()
in WindowsSmartInk/SmartInkLaboratory/App.xaml.cs
21 5 1
public static Rect CombineWith()
in WindowsSmartInk/SmartInkLaboratory/Extensions/RectExtensions.cs
9 5 2
public MainPage()
in WindowsSmartInk/SmartInkLaboratory/MainPage.xaml.cs
43 5 0