microsoft / arcade-machine
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 80 units with 1,023 lines of code in units (72.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (281 lines of code)
    • 11 simple units (270 lines of code)
    • 63 very simple units (472 lines of code)
0% | 0% | 27% | 26% | 46%
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% | 27% | 26% | 45%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 27% | 27% | 44%
src/focus-strategies0% | 0% | 27% | 20% | 51%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function isForForm()
in src/input.service.ts
49 24 2
private rescroll()
in src/focus.service.ts
75 17 3
private findNextFocusByRaycast()
in src/focus.service.ts
61 16 3
private isFocusable()
in src/focus.service.ts
27 14 1
public find()
in src/focus-strategies/focus-by-distance.ts
39 12 0
private triggerOnFocusHandlers()
in src/focus.service.ts
30 12 1
public findNextFocus()
in src/focus-strategies/focus-by-registry.ts
29 10 2
private bubbleEvent()
in src/focus.service.ts
25 10 3
private pollGamepad()
in src/input.service.ts
32 9 1
constructor()
in src/input.service.ts
43 8 1
private findNextFocusable()
in src/focus.service.ts
23 7 4
public attempt()
in src/input.service.ts
28 7 1
private bubbleDirection()
in src/input.service.ts
14 7 1
function getCommonAncestor()
in src/focus.service.ts
15 6 2
public defaultFires()
in src/focus.service.ts
16 6 2
private setDefaultFocus()
in src/focus.service.ts
15 6 1
private watchForGamepad()
in src/input.service.ts
30 6 0
public calcPrimaryDistance()
in src/focus-strategies/focus-by-distance.ts
18 5 2
private getElementsInDirection()
in src/focus-strategies/focus-by-distance.ts
16 5 0
public releaseFocus()
in src/focus.service.ts
18 5 2