microsoft / powerbi-visuals-utils-interactivityutils
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 79 units with 767 lines of code in units (68.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 12 medium size units (273 lines of code)
    • 11 small units (174 lines of code)
    • 56 very small units (320 lines of code)
0% | 0% | 35% | 22% | 41%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 35% | 22% | 41%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 35% | 22% | 41%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
export function extractFilterColumnTarget()
in src/interactivityFilterService.ts
26 21 1
protected select()
in src/interactivitySelectionService.ts
25 7 2
public bind()
in src/interactivityService.ts
25 6 4
23 1 0
public bind()
in src/interactivityBaseService.ts
23 6 1
protected sendSelectionToHost()
in src/interactivityFilterService.ts
22 3 0
private syncSelectionStateInverted()
in src/interactivityFilterService.ts
22 7 0
public syncSelectionState()
in src/interactivitySelectionService.ts
22 8 0
private syncSelectionStateInverted()
in src/interactivitySelectionService.ts
22 7 0
public syncSelectionState()
in src/interactivityFilterService.ts
21 8 0
public syncSelectionState()
in src/interactivityService.ts
21 8 0
private syncSelectionStateInverted()
in src/interactivityService.ts
21 7 0
protected applyToAllSelectableDataPoints()
in src/interactivityBaseService.ts
20 7 1
20 7 2
private selectSingleDataPoint()
in src/interactivityService.ts
20 5 2
private applyToAllSelectableDataPoints()
in src/interactivityService.ts
20 7 1
public bind()
in src/interactivityFilterService.ts
18 6 1
protected bindContextMenu()
in src/baseBehavior.ts
14 1 0
private selectSingleDataPoint()
in src/interactivityFilterService.ts
14 5 2
public renderSelection()
in src/baseBehavior.ts
13 3 1