angular / preboot
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 55 units with 669 lines of code in units (59.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (113 lines of code)
    • 9 simple units (207 lines of code)
    • 43 very simple units (349 lines of code)
0% | 0% | 16% | 30% | 52%
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% | 17% | 31% | 51%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/lib/api0% | 0% | 22% | 34% | 42%
src/lib/common0% | 0% | 43% | 0% | 56%
src/lib0% | 0% | 0% | 76% | 23%
tools/tslint-rules0% | 0% | 0% | 21% | 78%
integration0% | 0% | 0% | 0% | 100%
tools/package-tools0% | 0% | 0% | 0% | 100%
integration/src0% | 0% | 0% | 0% | 100%
integration/src/app0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export function createListenHandler()
in src/lib/api/event.recorder.ts
54 13 4
export function start()
in src/lib/api/event.recorder.ts
31 11 2
export function getNodeKeyForPreboot()
in src/lib/common/get-node-key.ts
28 11 1
export function PREBOOT_FACTORY()
in src/lib/provider.ts
48 10 6
switchBuffer()
in src/lib/api/event.replayer.ts
17 10 1
cleanup()
in src/lib/api/event.replayer.ts
28 10 1
private _validatedDecorator()
in tools/tslint-rules/validateDecoratorsRule.ts
31 9 1
export function assign()
in src/lib/api/inline.preboot.code.ts
17 9 2
export function getSelection()
in src/lib/api/event.recorder.ts
18 8 1
setFocus()
in src/lib/api/event.replayer.ts
16 8 1
selection: isCaretNode ? getSelection()
in src/lib/api/event.recorder.ts
9 7 1
export function stringifyWithFunctions()
in src/lib/api/inline.preboot.code.ts
23 6 1
visitClassDeclaration()
in tools/tslint-rules/noHostDecoratorInConcreteRule.ts
22 5 1
export function createBuffer()
in src/lib/api/event.recorder.ts
12 5 1
replayEvent()
in src/lib/api/event.replayer.ts
23 5 2
visitClassDeclaration()
in tools/tslint-rules/validateDecoratorsRule.ts
9 4 1
private _generateRules()
in tools/tslint-rules/validateDecoratorsRule.ts
21 4 1
replayAll()
in src/lib/api/event.replayer.ts
11 4 0
replayForApp()
in src/lib/api/event.replayer.ts
10 4 1
export function findBuildConfig()
in tools/package-tools/find-build-config.ts
11 3 0