microsoft / PowerBI-visuals-ChicletSlicer
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 55 units with 1,211 lines of code in units (69.0% of code).
    • 1 very long units (129 lines of code)
    • 8 long units (591 lines of code)
    • 6 medium size units (147 lines of code)
    • 12 small units (190 lines of code)
    • 28 very small units (154 lines of code)
10% | 48% | 12% | 15% | 12%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts10% | 48% | 12% | 15% | 12%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src10% | 48% | 12% | 15% | 12%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private updateSelection()
in src/chicletSlicer.ts
129 14 1
public convert()
in src/converter.ts
91 27 0
public bindEvents()
in src/webBehavior.ts
80 19 2
private updateInternal()
in src/chicletSlicer.ts
75 19 1
public static converter()
in src/chicletSlicer.ts
74 13 3
private getGroupedData()
in src/tableView.ts
74 25 0
private enterSelection()
in src/chicletSlicer.ts
70 1 1
64 1 0
private initContainer()
in src/chicletSlicer.ts
63 1 0
29 13 2
public update()
in src/chicletSlicer.ts
26 9 1
private enumerateRows()
in src/chicletSlicer.ts
24 1 1
private getComputedOptions()
in src/tableView.ts
24 6 2
private createSearchHeader()
in src/chicletSlicer.ts
23 1 1
public styleSlicerInputs()
in src/webBehavior.ts
21 6 2
private renderMouseover()
in src/webBehavior.ts
20 6 0
public enumerateObjectInstances()
in src/chicletSlicer.ts
18 6 1
private getBorderWidth()
in src/chicletSlicer.ts
18 7 2
private setTotalRows()
in src/tableView.ts
18 5 0
private forceSelection()
in src/webBehavior.ts
18 6 0