BoltsFramework / Bolts-Java
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 64 units with 818 lines of code in units (93.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 12 medium size units (368 lines of code)
    • 22 small units (322 lines of code)
    • 30 very small units (128 lines of code)
0% | 0% | 44% | 39% | 15%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 44% | 39% | 15%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
BoltsTest/src/bolts0% | 0% | 70% | 29% | 0%
Bolts/src/bolts0% | 0% | 18% | 49% | 32%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
42 9 1
39 5 0
37 4 0
37 4 0
34 1 0
31 3 0
30 3 0
30 5 4
22 1 0
22 1 0
22 1 0
22 1 0
20 3 2
20 3 2
19 1 0
17 5 1
17 1 0
17 1 0
16 1 0
15 1 0
15 2 3
15 2 4
14 3 2
14 3 2
14 4 0
13 3 0
13 3 0
13 2 2
12 2 1
12 2 0
12 2 1
12 2 1
11 1 0
11 1 0
9 2 0
7 2 0
5 1 0
5 1 0
5 1 0
5 1 0
5 1 0
5 1 1
5 1 1
5 1 0
5 1 0
5 2 0
5 2 1
5 2 1
4 1 1
4 1 2