microsoft / rush-example
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 23 units with 392 lines of code in units (66.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 4 simple units (138 lines of code)
    • 19 very simple units (254 lines of code)
0% | 0% | 0% | 35% | 64%
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
js0% | 0% | 0% | 35% | 64%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
common/scripts0% | 0% | 0% | 35% | 64%
libraries/my-controls/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function _copyAndTrimNpmrcFile()
in common/scripts/install-run.js
31 8 2
function _resolvePackageVersion()
in common/scripts/install-run.js
42 7 3
function installAndRun()
in common/scripts/install-run.js
42 7 4
function _run()
in common/scripts/install-run-rush.js
23 6 0
function _parsePackageSpecifier()
in common/scripts/install-run.js
20 5 1
function _syncNpmrc()
in common/scripts/install-run.js
16 5 3
function getNpmPath()
in common/scripts/install-run.js
22 5 0
function findRushJsonFolder()
in common/scripts/install-run.js
20 5 0
function _cleanInstallFolder()
in common/scripts/install-run.js
20 5 2
function _run()
in common/scripts/install-run.js
25 5 0
function _ensureAndJoinPath()
in common/scripts/install-run.js
16 4 2
function _getRushVersion()
in common/scripts/install-run-rush.js
19 3 0
function _isPackageAlreadyInstalled()
in common/scripts/install-run.js
13 3 1
function _installPackage()
in common/scripts/install-run.js
18 3 3
function _ensureFolder()
in common/scripts/install-run.js
7 2 1
function _getRushTempFolder()
in common/scripts/install-run.js
10 2 1
function _createPackageJson()
in common/scripts/install-run.js
19 2 3
function _getBinPath()
in common/scripts/install-run.js
5 2 2
function _writeFlagFile()
in common/scripts/install-run.js
9 2 1
function runWithErrorAndStatusCode()
in common/scripts/install-run.js
10 2 1