microsoft / vscode-debugadapter-node
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 197 units with 1,595 lines of code in units (54.0% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (105 lines of code)
    • 4 medium complex units (123 lines of code)
    • 8 simple units (194 lines of code)
    • 184 very simple units (1,173 lines of code)
0% | 6% | 7% | 12% | 73%
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% | 6% | 7% | 12% | 73%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
adapter/src0% | 10% | 2% | 8% | 77%
src0% | 0% | 42% | 22% | 34%
testSupport/src0% | 0% | 0% | 14% | 85%
adapter/src/web0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
protected dispatchRequest()
in adapter/src/debugSession.ts
105 46 1
function propertyType()
in src/generator.ts
35 14 1
function Interface()
in src/generator.ts
28 13 3
public log()
in adapter/src/internalLogger.ts
26 11 3
function comment()
in src/generator.ts
34 11 1
private _handleData()
in adapter/src/protocol.ts
37 10 1
private handleData()
in testSupport/src/protocolClient.ts
31 8 1
function Module()
in src/generator.ts
37 7 2
protected sendErrorResponse()
in adapter/src/debugSession.ts
27 6 5
private static formatPII()
in adapter/src/debugSession.ts
10 6 3
public sendEvent()
in adapter/src/loggingDebugSession.ts
12 6 1
function line()
in src/generator.ts
15 6 3
public assertOutput()
in testSupport/src/debugClient.ts
25 6 3
public sendRequest()
in adapter/src/protocol.ts
20 5 4
function objectType()
in src/generator.ts
15 5 1
public assertStoppedLocation()
in testSupport/src/debugClient.ts
20 5 4
private assertPartialLocationsEqual()
in testSupport/src/debugClient.ts
11 5 2
public assertPath()
in testSupport/src/debugClient.ts
15 5 3
public hitBreakpoint()
in testSupport/src/debugClient.ts
24 5 4
public constructor()
in adapter/src/debugSession.ts
13 4 4