gitlab-org / Git
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
Learn more...
Conditional Complexity Overall
7% | 9% | 24% | 22% | 35%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
c8% | 9% | 25% | 22% | 34%
pm13% | 1% | 21% | 21% | 42%
py11% | 7% | 26% | 15% | 38%
perl1% | 17% | 20% | 25% | 34%
h0% | 0% | 11% | 13% | 75%
js0% | 0% | 22% | 21% | 56%
pl0% | 0% | 9% | 24% | 65%
go0% | 0% | 7% | 38% | 53%
rs0% | 0% | 0% | 0% | 100%
t0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT6% | 8% | 26% | 22% | 36%
builtin13% | 13% | 24% | 20% | 28%
perl13% | 1% | 22% | 21% | 40%
sha1dc50% | 0% | 3% | 2% | 44%
compat4% | 4% | 17% | 27% | 45%
reftable4% | 1% | 22% | 29% | 42%
t2% | 4% | 26% | 23% | 43%
xdiff6% | 16% | 33% | 23% | 19%
refs0% | 17% | 25% | 19% | 37%
gitweb0% | 14% | 24% | 22% | 38%
contrib0% | 0% | 17% | 37% | 45%
trace20% | 0% | 11% | 7% | 80%
negotiator0% | 0% | 15% | 23% | 61%
ewah0% | 0% | 0% | 44% | 55%
oss-fuzz0% | 0% | 0% | 17% | 82%
sha2560% | 0% | 0% | 10% | 89%
block-sha10% | 0% | 0% | 17% | 82%
sha10% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
685 173 4
384 159 6
778 151 0
462 139 4
552 134 4
263 129 2
476 119 4
377 108 4
189 108 3
113 107 1
316 99 2
309 95 3
352 95 4
254 94 4
330 88 4
344 86 7
277 86 5
334 86 4
273 85 1
239 83 5
242 83 6
210 81 4
408 81 5
199 81 2
311 78 4
102 76 2
315 76 4
264 75 4
218 74 4
199 73 2
241 73 4
295 72 4
197 72 3
225 70 5
205 70 2
328 70 4
219 70 8
242 69 4
163 68 2
137 66 5
181 65 6
232 65 6
228 64 4
240 63 2
168 63 4
174 63 4
147 62 4
218 62 5
123 62 2
202 61 3