angular / material-tools
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 78 units with 818 lines of code in units (59.1% 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)
    • 3 simple units (95 lines of code)
    • 75 very simple units (723 lines of code)
0% | 0% | 0% | 11% | 88%
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% | 25% | 74%
ts0% | 0% | 0% | 7% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts0% | 0% | 0% | 29% | 70%
lib/resolvers0% | 0% | 0% | 22% | 77%
lib/builders0% | 0% | 0% | 0% | 100%
lib/cli0% | 0% | 0% | 0% | 100%
lib/common0% | 0% | 0% | 0% | 100%
lib/virtual_context0% | 0% | 0% | 0% | 100%
lib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function init()
in scripts/release.js
52 10 0
static resolve()
in lib/resolvers/DependencyResolver.ts
32 9 3
private static resolvePattern()
in lib/resolvers/LocalResolver.ts
11 6 3
function incrementVersion()
in scripts/release.js
23 5 1
constructor()
in lib/MaterialTools.ts
17 5 1
function SandboxRequire()
in lib/virtual_context/SandboxRequire.ts
25 5 1
27 5 1
function runVersion()
in scripts/test-versions.js
20 3 1
private _registerTheme()
in lib/builders/ThemeBuilder.ts
12 3 1
static forEach()
in lib/common/Utils.ts
7 3 3
static resolve()
in lib/resolvers/PackageResolver.ts
33 3 2
this[fnName] = function()
in lib/resolvers/isolated_angular.js
6 3 0
async function onVersionsRetrieved()
in scripts/test-versions.js
8 2 1
function isAuthorized()
in scripts/release.js
10 2 0
function checkBranch()
in scripts/release.js
8 2 0
function publishPackage()
in scripts/release.js
7 2 1
function log()
in scripts/release.js
3 2 1
function success()
in scripts/release.js
3 2 1
private _buildData()
in lib/MaterialTools.ts
3 2 1
private _writeFile()
in lib/MaterialTools.ts
12 2 3