angular / dgeni
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 22 units with 261 lines of code in units (54.9% 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)
    • 2 simple units (34 lines of code)
    • 20 very simple units (227 lines of code)
0% | 0% | 0% | 13% | 86%
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% | 0% | 0% | 13% | 86%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 0% | 8% | 91%
src/util0% | 0% | 0% | 33% | 66%
src/packages0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
package()
in src/Dgeni.ts
17 7 2
function addDependencies()
in src/util/dependency-sort.ts
17 6 3
eventHandler()
in src/Package.ts
13 5 2
configureInjector()
in src/Dgeni.ts
32 5 0
constructor()
in src/Package.ts
4 4 2
processor()
in src/Package.ts
17 4 2
factory()
in src/Package.ts
15 4 2
type()
in src/Package.ts
13 4 2
runProcessor()
in src/Dgeni.ts
23 4 2
info()
in src/Dgeni.ts
12 4 0
static isPackage()
in src/Package.ts
3 3 1
function isObject()
in src/Package.ts
4 3 1
function logDiff()
in src/packages/docDiffLogger.ts
5 3 1
config()
in src/Package.ts
5 2 1
constructor()
in src/Dgeni.ts
5 2 1
generate()
in src/Dgeni.ts
21 2 0
triggerEvent()
in src/Dgeni.ts
15 2 2
export function sortByDependency()
in src/util/dependency-sort.ts
17 2 4
export function getInjectablesFactory()
in src/util/getInjectables.ts
11 2 1
function isString()
in src/Package.ts
3 1 1