twitter / pants
Unit Size

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

Intro
Learn more...
Unit Size Overall
4% | 6% | 28% | 23% | 37%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs12% | 14% | 41% | 19% | 12%
py2% | 5% | 25% | 24% | 42%
scala14% | 6% | 15% | 25% | 38%
java3% | 1% | 25% | 23% | 46%
js0% | 0% | 24% | 11% | 63%
cpp0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src4% | 7% | 28% | 23% | 35%
contrib2% | 3% | 27% | 24% | 41%
pants-plugins0% | 0% | 36% | 20% | 42%
testprojects0% | 0% | 9% | 12% | 78%
build-support0% | 0% | 100% | 0% | 0%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
269 6 1
268 9 0
177 2 0
163 16 2
157 13 3
156 48 1
154 3 2
153 34 4
137 14 7
137 11 5
135 5 1
133 9 4
131 42 3
127 10 4
125 11 1
110 19 3
99 4 2
97 5 2
93 6 5
89 1 5
89 6 4
88 17 6
88 5 0
85 1 0
85 4 3
83 21 3
79 25 3
78 1 0
77 1 0
76 1 0
76 9 4
74 7 27
74 8 2
72 19 2
72 1 0
71 1 0
70 30 4
70 14 2
69 20 10
67 1 0
66 20 1
66 8 3
66 1 0
64 8 3
64 2 5
61 28 2
59 30 11
59 12 1
59 3 2
58 3 2