microsoft / SyncTasks
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 35 units with 935 lines of code in units (169.7% of code).
    • 0 very long units (0 lines of code)
    • 7 long units (408 lines of code)
    • 10 medium size units (371 lines of code)
    • 7 small units (99 lines of code)
    • 11 very small units (57 lines of code)
0% | 43% | 39% | 10% | 6%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 43% | 39% | 10% | 6%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 43% | 39% | 10% | 6%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
export function all()
in src/SyncTasks.ts
66 8 10
export function all()
in src/SyncTasks.ts
62 8 9
export function all()
in src/SyncTasks.ts
59 8 8
export function race()
in src/SyncTasks.ts
59 6 10
export function all()
in src/SyncTasks.ts
56 8 7
export function all()
in src/SyncTasks.ts
53 8 6
export function race()
in src/SyncTasks.ts
53 6 9
export function all()
in src/SyncTasks.ts
50 8 5
export function race()
in src/SyncTasks.ts
48 6 8
export function race()
in src/SyncTasks.ts
45 6 7
export function all()
in src/SyncTasks.ts
43 8 1
export function race()
in src/SyncTasks.ts
42 6 6
export function race()
in src/SyncTasks.ts
39 6 5
export function race()
in src/SyncTasks.ts
33 6 1
24 5 1
24 5 1
private _addCallbackSet()
in src/SyncTasks.ts
23 5 2
18 4 1
private _cancelInternal()
in src/SyncTasks.ts
16 5 1
private _resolveSuccesses()
in src/SyncTasks.ts
15 3 0