microsoft / Recurring-Integrations-Scheduler
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 355 units with 13,496 lines of code in units (83.4% of code).
    • 0 very complex units (0 lines of code)
    • 5 complex units (515 lines of code)
    • 17 medium complex units (1,492 lines of code)
    • 38 simple units (1,204 lines of code)
    • 295 very simple units (10,285 lines of code)
0% | 3% | 11% | 8% | 76%
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% | 3% | 11% | 8% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Scheduler0% | 2% | 7% | 5% | 84%
Job.Import0% | 56% | 17% | 0% | 25%
Job.ExecutionMonitor0% | 45% | 19% | 21% | 13%
Common0% | 0% | 22% | 29% | 48%
Job.Download0% | 0% | 41% | 58% | 0%
Job.Upload0% | 0% | 75% | 0% | 24%
Job.ProcessingMonitor0% | 0% | 36% | 51% | 11%
Job.Export0% | 0% | 100% | 0% | 0%
Server0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private bool ValidateJobSettings()
in Scheduler/Forms/ImportJobV3.cs
71 43 0
private bool ValidateJobSettings()
in Scheduler/Forms/UploadJobV3.cs
46 30 0
private void EditJob()
in Scheduler/Forms/MainForm.cs
113 29 0
167 27 0
private async Task PostProcessMessage()
in Job.ExecutionMonitor/ExecutionMonitor.cs
118 26 2
public virtual void Initialize()
in Common/JobSettings/Settings.cs
127 24 1
private void UploadJobForm_Load()
in Scheduler/Forms/UploadJobV3.cs
178 21 2
private bool ValidateJobSettings()
in Scheduler/Forms/ExportJobV3.cs
38 20 0
private void ImportJobForm_Load()
in Scheduler/Forms/ImportJobV3.cs
184 19 2
public override void Initialize()
in Common/JobSettings/ImportJobSettings.cs
110 18 1
private bool ValidateJobSettings()
in Scheduler/Forms/DownloadJobV3.cs
30 17 0
private void DownloadJobForm_Load()
in Scheduler/Forms/DownloadJobV3.cs
139 16 2
private void ExportJobForm_Load()
in Scheduler/Forms/ExportJobV3.cs
132 15 2
public override void Initialize()
in Common/JobSettings/UploadJobSettings.cs
87 14 1
private void ValidateButton_Click()
in Scheduler/Forms/ValidateConnection.cs
96 14 2
public async Task Execute()
in Job.Download/Download.cs
53 12 1
public async Task Execute()
in Job.ExecutionMonitor/ExecutionMonitor.cs
52 12 1
public async Task Execute()
in Job.Export/Export.cs
51 12 1
public async Task Execute()
in Job.Import/Import.cs
52 12 1
public async Task Execute()
in Job.ProcessingMonitor/ProcessingMonitor.cs
52 12 1