microsoft / DiagManager
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 225 units with 3,105 lines of code in units (48.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (452 lines of code)
    • 13 simple units (459 lines of code)
    • 206 very simple units (2,194 lines of code)
0% | 0% | 14% | 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% | 15% | 68%
js0% | 0% | 0% | 0% | 100%
vbs0% | 0% | 0% | 0% | 0%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
DiagManager/DiagClasses0% | 0% | 20% | 14% | 64%
DiagManager0% | 0% | 5% | 8% | 85%
diagutil/Intercounters0% | 0% | 0% | 60% | 39%
diagutil0% | 0% | 0% | 66% | 33%
DiagManager/CustomDiagnostics0% | 0% | 0% | 0% | 100%
DiagManager/Properties0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public string AddEventActionText()
in DiagManager/DiagClasses/XEvent.cs
84 20 0
private void MakeManualBatchFiles()
in DiagManager/DiagClasses/PackageMgr.cs
137 19 0
public static void PopulateTree()
in DiagManager/DiagClasses/DiagTreeMgr.cs
72 18 3
private static void OnCheck()
in DiagManager/DiagClasses/DiagTreeMgr.cs
47 13 2
public static DiagCategory GetCustomGroup()
in DiagManager/DiagClasses/DiagFactory.cs
74 11 2
private void SetFont()
in DiagManager/fmDiagManager.cs
38 11 1
static void FindSqldiag()
in diagutil/Program.cs
36 10 0
public static void SetCategoryColor()
in DiagManager/DiagClasses/DiagTreeMgr.cs
28 9 1
private void btnSaveSelection_Click()
in DiagManager/fmDiagManager.cs
38 9 2
public void Translate()
in diagutil/Intercounters/XmlTranslator.cs
56 9 1
static List GetEventCategoryList()
in DiagManager/DiagClasses/DiagFactory.cs
59 8 4
void SetCustomDiag()
in DiagManager/DiagClasses/ConfigFileMgr.cs
38 7 1
static List GetLocalVersionList()
in DiagManager/DiagClasses/DiagFactory.cs
26 7 1
static List GetLocalScenarioList()
in DiagManager/DiagClasses/DiagFactory.cs
26 7 1
public Xevent()
in DiagManager/DiagClasses/XEvent.cs
47 7 1
private void SetupRadioButtons()
in DiagManager/fmDiagManager.cs
25 7 2
public static List GetGlobalScenarioListByFeatureVersion()
in DiagManager/DiagClasses/DiagFactory.cs
14 6 2
public bool ComputeFileHash()
in DiagManager/DiagClasses/PackageMgr.cs
44 6 2
public string CheckConflict()
in DiagManager/DiagClasses/Scenario.cs
22 6 0
static List GetLocalFeatureList()
in DiagManager/DiagClasses/DiagFactory.cs
22 5 1