microsoft / Orb
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 137 units with 1,569 lines of code in units (43.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (72 lines of code)
    • 6 medium complex units (362 lines of code)
    • 9 simple units (331 lines of code)
    • 121 very simple units (804 lines of code)
0% | 4% | 23% | 21% | 51%
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% | 17% | 23% | 12% | 46%
js0% | 0% | 29% | 18% | 51%
cc0% | 0% | 42% | 25% | 32%
cs0% | 0% | 0% | 31% | 68%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
node_modules_native/node_modules_forked/node-pty/src0% | 11% | 30% | 17% | 41%
node_modules_native/node_modules_forked/node-pty/lib0% | 0% | 36% | 11% | 52%
dotNet/PsEdge0% | 0% | 0% | 37% | 62%
build0% | 0% | 0% | 63% | 36%
dotNet/AuthEdge0% | 0% | 0% | 0% | 100%
node_modules_native/node_modules_forked/node-pty/scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
constructor()
in node_modules_native/node_modules_forked/node-pty/src/unixTerminal.ts
72 26 3
function UnixTerminal()
in node_modules_native/node_modules_forked/node-pty/lib/unixTerminal.js
64 25 3
static NAN_METHOD()
in node_modules_native/node_modules_forked/node-pty/src/win/pty.cc
96 19 1
function WindowsTerminal()
in node_modules_native/node_modules_forked/node-pty/lib/windowsTerminal.js
55 18 3
constructor()
in node_modules_native/node_modules_forked/node-pty/src/windowsTerminal.ts
53 17 3
function argsToCommandLine()
in node_modules_native/node_modules_forked/node-pty/lib/windowsPtyAgent.js
48 12 2
export function argsToCommandLine()
in node_modules_native/node_modules_forked/node-pty/src/windowsPtyAgent.ts
46 12 2
public override Dictionary Prompt()
in dotNet/PsEdge/PsHostUI.cs
61 10 3
function Terminal()
in node_modules_native/node_modules_forked/node-pty/lib/terminal.js
14 10 1
constructor()
in node_modules_native/node_modules_forked/node-pty/src/terminal.ts
14 10 1
public override int PromptForChoice()
in dotNet/PsEdge/PsHostUI.cs
56 9 4
UnixTerminal.open = function()
in node_modules_native/node_modules_forked/node-pty/lib/unixTerminal.js
38 9 1
public static open()
in node_modules_native/node_modules_forked/node-pty/src/unixTerminal.ts
38 9 1
version: getBuildVersion()
in build/gulpfile.js
53 7 0
std::wstring get_shell_path()
in node_modules_native/node_modules_forked/node-pty/src/win/path_util.cc
33 7 1
static NAN_METHOD()
in node_modules_native/node_modules_forked/node-pty/src/win/pty.cc
24 7 1
public async Task AcquireToken()
in dotNet/AuthEdge/AuthEdge.cs
40 5 1
function getExeName()
in build/gulpfile.js
8 4 0
public async Task CreateRunspacePool()
in dotNet/PsEdge/PsEdge.cs
29 4 1
15 4 1