github / ghas-jira-integration
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 90 units with 870 lines of code in units (78.7% of code).
    • 1 very long units (115 lines of code)
    • 1 long units (71 lines of code)
    • 11 medium size units (309 lines of code)
    • 6 small units (104 lines of code)
    • 71 very small units (271 lines of code)
13% | 8% | 35% | 11% | 31%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py13% | 8% | 35% | 11% | 31%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT13% | 8% | 35% | 11% | 31%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
115 1 0
71 12 0
36 14 1
35 13 4
34 7 3
28 11 3
28 6 0
27 8 2
26 5 2
25 5 2
24 6 1
23 12 1
23 13 1
20 2 2
19 8 1
19 2 2
18 2 2
16 3 2
12 3 2
10 1 1
10 2 1
10 1 0
9 2 2
9 1 0
9 1 0
9 4 1
8 1 0
8 1 0
8 4 4
7 2 6
7 1 3
6 3 3
5 1 4
5 2 1
5 2 1
5 3 2
5 1 4
5 2 2
4 1 2
4 1 2
4 1 2
4 1 1
4 1 1
4 1 3
4 1 1
4 2 1
3 1 3
3 1 3
3 1 3
3 1 1