twitter / scrooge
Unit Size

The distribution of size of units (measured in lines of code).

Intro
Learn more...
Unit Size Overall
9% | 13% | 21% | 27% | 28%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
scala8% | 13% | 21% | 28% | 28%
py97% | 0% | 0% | 0% | 2%
java0% | 0% | 51% | 14% | 34%
sbt0% | 0% | 0% | 100% | 0%
h0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
scrooge-generator13% | 17% | 16% | 29% | 22%
doc97% | 0% | 0% | 0% | 2%
scrooge-core0% | 5% | 20% | 28% | 45%
scrooge-linter0% | 19% | 41% | 20% | 18%
scrooge-thrift-validation0% | 62% | 0% | 26% | 10%
scrooge-adaptive0% | 0% | 49% | 43% | 6%
scrooge-maven-plugin0% | 0% | 55% | 12% | 31%
scrooge-benchmark0% | 0% | 18% | 3% | 77%
scrooge-sbt-plugin0% | 0% | 83% | 0% | 16%
project0% | 0% | 0% | 57% | 42%
ROOT0% | 0% | 0% | 100% | 0%
scrooge-serializer0% | 0% | 0% | 17% | 82%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
187 8 1
161 19 3
119 4 2
103 22 1
102 7 1
99 9 2
95 11 2
90 32 2
76 21 3
71 4 4
71 5 1
69 6 4
69 13 0
68 6 2
59 16 4
59 6 2
58 17 3
58 24 2
48 13 3
47 3 4
46 31 5
43 29 5
42 8 2
42 8 2
42 9 0
42 16 3
40 15 2
40 3 1
39 9 1
39 17 2
38 3 4
37 7 1
37 12 2
36 15 3
36 6 1
35 16 1
35 11 1
35 9 1
34 1 1
34 4 2
33 8 2
33 18 5
32 10 3
32 19 2
31 7 4
31 6 0
30 1 0
29 7 0
28 8 2
27 15 3