microsoft / PowerBI-visuals-WordCloud
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 78 units with 1,261 lines of code in units (67.7% of code).
    • 0 very long units (0 lines of code)
    • 5 long units (307 lines of code)
    • 13 medium size units (420 lines of code)
    • 21 small units (318 lines of code)
    • 39 very small units (216 lines of code)
0% | 24% | 33% | 25% | 17%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 24% | 33% | 25% | 17%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 24% | 33% | 25% | 17%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static CONVERTER()
in src/WordCloud.ts
70 19 3
private generateSprites()
in src/WordCloud.ts
66 7 3
private setSprites()
in src/WordCloud.ts
58 10 2
private findPosition()
in src/WordCloud.ts
57 16 4
private render()
in src/WordCloud.ts
56 4 1
40 2 2
public init()
in src/WordCloud.ts
40 7 1
public update()
in src/WordCloud.ts
38 13 1
private computePositions()
in src/WordCloud.ts
36 5 1
private computeCycle()
in src/WordCloud.ts
35 9 5
33 9 1
private scaleMainView()
in src/WordCloud.ts
33 2 1
32 1 2
private checkIntersect()
in src/WordCloud.ts
31 6 2
30 4 3
private updateBorders()
in src/WordCloud.ts
29 7 2
22 3 5
21 2 3
20 7 1
public constructor()
in src/valueSelectionManager.ts
20 3 2