JetBrains / kotlin
Unit Size

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

Intro
Learn more...
Unit Size Overall
3% | 5% | 16% | 22% | 52%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
kt3% | 5% | 19% | 26% | 45%
java2% | 3% | 7% | 7% | 79%
cc73% | 11% | 9% | 0% | 4%
kts30% | 4% | 0% | 4% | 60%
cpp3% | 4% | 12% | 23% | 55%
ts0% | 17% | 33% | 26% | 21%
hpp0% | 5% | 9% | 20% | 64%
js0% | 3% | 7% | 32% | 56%
c0% | 1% | 1% | 1% | 95%
inc0% | 44% | 45% | 10% | 0%
swift0% | 0% | 22% | 13% | 64%
py0% | 0% | 44% | 26% | 28%
mm0% | 0% | 31% | 17% | 51%
h0% | 0% | 20% | 21% | 57%
groovy0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
compiler3% | 5% | 17% | 25% | 47%
kotlin-native4% | 6% | 15% | 14% | 58%
libraries3% | 5% | 26% | 23% | 41%
plugins2% | 8% | 17% | 23% | 47%
core2% | 4% | 19% | 22% | 51%
wasm22% | 6% | 17% | 17% | 36%
build-common5% | 13% | 20% | 18% | 41%
analysis<1% | 1% | 5% | 6% | 85%
native2% | 3% | 27% | 21% | 45%
js0% | 7% | 18% | 23% | 50%
generators0% | 14% | 21% | 29% | 34%
repo0% | 12% | 37% | 8% | 41%
jps0% | 1% | 10% | 13% | 74%
test-instrumenter0% | 0% | 0% | 81% | 18%
benchmarks0% | 0% | 0% | 22% | 77%
gradle0% | 0% | 0% | 26% | 73%
idea0% | 0% | 0% | 0% | 100%
prepare0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
2307 1 0
1053 16 0
622 1 5
614 172 7
508 2 0
465 2 0
465 2 0
300 1 4
290 193 0
289 1 0
287 1 0
287 1 0
278 12 0
229 4 1
212 11 0
211 15 1
209 22 1
209 103 0
207 38 5
190 27 1
188 107 2
187 41 1
186 17 6
177 1 3
177 13 3
171 1 0
166 27 1
164 1 0
164 25 4
163 1 0
162 24 8
159 26 1
157 1 0
155 26 3
151 1 0
151 1 0
151 1 0
151 15 4
149 24 3
147 15 2
147 1 0
145 30 1
145 34 7
145 39 7
144 40 7
142 7 1
139 40 3
139 1 0
138 1 5
137 18 6