microsoft / CosmicClone
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 122 units with 2,413 lines of code in units (69.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 7 medium complex units (374 lines of code)
    • 8 simple units (340 lines of code)
    • 107 very simple units (1,699 lines of code)
0% | 0% | 15% | 14% | 70%
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% | 15% | 14% | 70%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
CosmosCloneCommon/Utility0% | 0% | 28% | 4% | 66%
CosmicCloneUI0% | 0% | 13% | 14% | 72%
CosmosCloneCommon/Migrator0% | 0% | 5% | 35% | 58%
CosmosCloneCommon/Model0% | 0% | 0% | 35% | 64%
CloneConsoleRun/Sample0% | 0% | 0% | 0% | 100%
CloneConsoleRun0% | 0% | 0% | 0% | 100%
CosmosClone0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public JToken GetUpdatedJsonArrayValue()
in CosmosClone/CosmosCloneCommon/Utility/ObjectScrubber.cs
61 18 4
public List getScrubRules()
in CosmosClone/CosmicCloneUI/DataAnonymizationPage.xaml.cs
65 13 0
public List ScrubObjectList()
in CosmosClone/CosmosCloneCommon/Utility/ObjectScrubber.cs
65 13 2
public List GetPropertyValues()
in CosmosClone/CosmosCloneCommon/Utility/ObjectScrubber.cs
58 13 3
public JToken GetDocumentShuffledToken()
in CosmosClone/CosmosCloneCommon/Utility/ObjectScrubber.cs
55 13 3
void Worker_DoWork2()
in CosmosClone/CosmicCloneUI/MainWindow.xaml.cs
41 12 2
public async Task StartCopy()
in CosmosClone/CosmosCloneCommon/Migrator/DocumentMigrator.cs
29 11 1
public bool validateInput()
in CosmosClone/CosmicCloneUI/DataAnonymizationPage.xaml.cs
45 10 0
public bool SetCompleteOnNoFilterRules()
in CosmosClone/CosmosCloneCommon/Migrator/DocumentMigrator.cs
24 9 0
private bool PerformAction()
in CosmosClone/CosmicCloneUI/MainWindow.xaml.cs
63 8 1
public async Task ReadUploadInBatches()
in CosmosClone/CosmosCloneCommon/Migrator/DocumentMigrator.cs
64 8 1
public async Task InitializeMigration()
in CosmosClone/CosmosCloneCommon/Migrator/DocumentMigrator.cs
40 7 0
public async Task ReadUploadInBatches()
in CosmosClone/CosmosCloneCommon/Migrator/DataScrubMigrator.cs
53 6 2
public static string GetRandomEntityType()
in CosmosClone/CosmosCloneCommon/Model/RandomNumberGenerator.cs
17 6 0
private JToken ScrubTokenValue()
in CosmosClone/CosmosCloneCommon/Utility/ObjectScrubber.cs
34 6 3
public async Task CreateTargetDocumentCollection()
in CosmosClone/CloneConsoleRun/Sample/CosmosSampleDBHelper.cs
41 5 3
public bool TestCloneOptions()
in CosmosClone/CosmicCloneUI/CloneOptionsPage.xaml.cs
21 5 0
public void setRequiredprogressBars()
in CosmosClone/CosmicCloneUI/CopyCollectionPage.xaml.cs
15 5 1
void AddRuleWithData()
in CosmosClone/CosmicCloneUI/DataAnonymizationPage.xaml.cs
140 5 3
private void LoadRuleButton_Click()
in CosmosClone/CosmicCloneUI/DataAnonymizationPage.xaml.cs
25 5 2