microsoft / process-migrator
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 72 units with 1,141 lines of code in units (79.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (47 lines of code)
    • 6 medium complex units (284 lines of code)
    • 11 simple units (360 lines of code)
    • 54 very simple units (450 lines of code)
0% | 4% | 24% | 31% | 39%
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
ts0% | 4% | 24% | 31% | 39%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Common0% | 4% | 28% | 30% | 37%
NodeJs0% | 0% | 0% | 42% | 57%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static validateConfiguration()
in src/Common/Utilities.ts
47 33 2
private async _importWITStates()
in src/Common/ProcessImporter.ts
63 25 2
private async _importPicklists()
in src/Common/ProcessImporter.ts
53 25 1
private async _importOtherGroupsAndControls()
in src/Common/ProcessImporter.ts
75 24 3
20 16 2
private async _addFieldsToWorkItemTypes()
in src/Common/ProcessImporter.ts
37 12 1
private async _validatePicklists()
in src/Common/ProcessImporter.ts
36 11 1
private async _getFieldsToCreate()
in src/Common/ProcessImporter.ts
41 10 1
private async _importBehaviors()
in src/Common/ProcessImporter.ts
49 10 1
private async _importPage()
in src/Common/ProcessImporter.ts
28 9 4
private async _addBehaviorsToWorkItemTypes()
in src/Common/ProcessImporter.ts
20 8 1
private async _validateFields()
in src/Common/ProcessImporter.ts
22 8 1
private async _importFields()
in src/Common/ProcessImporter.ts
20 7 1
export function ProcesCommandLine()
in src/NodeJs/ConfigurationProcessor.ts
36 7 0
private async _getComponents()
in src/Common/ProcessExporter.ts
92 6 1
private async _importWorkItemTypes()
in src/Common/ProcessImporter.ts
14 6 1
private async _importWITRule()
in src/Common/ProcessImporter.ts
19 6 3
export async function ProcessConfigurationFile()
in src/NodeJs/ConfigurationProcessor.ts
19 6 1
private async _createGroup()
in src/Common/ProcessImporter.ts
21 5 5
private async _editGroup()
in src/Common/ProcessImporter.ts
22 5 6