uber / cosmo
Conditional Complexity

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

Intro
Learn more...
Conditional Complexity Overall
1% | 5% | 24% | 17% | 51%
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
go3% | 7% | 26% | 19% | 42%
ts<1% | 3% | 23% | 17% | 54%
tsx0% | 10% | 27% | 3% | 58%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
router3% | 8% | 27% | 18% | 42%
controlplane<1% | 3% | 22% | 18% | 55%
composition0% | 7% | 17% | 15% | 59%
studio0% | 8% | 26% | 7% | 57%
data_migrations0% | 33% | 0% | 7% | 59%
cli0% | 0% | 50% | 20% | 29%
graphqlmetrics0% | 0% | 26% | 23% | 49%
shared0% | 0% | 22% | 41% | 35%
composition-go0% | 0% | 13% | 28% | 58%
playground0% | 0% | 8% | 6% | 84%
aws-lambda-router0% | 0% | 0% | 71% | 28%
cdn-server0% | 0% | 0% | 54% | 45%
connect0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
115 77 2
275 72 1
336 66 1
468 49 1
384 46 3
290 41 2
133 40 1
210 39 1
221 38 1
132 38 1
218 33 1
182 32 1
134 32 2
96 32 1
215 31 3
263 28 9
102 28 2
136 28 1
230 27 3
109 27 0
103 25 0
132 25 1
182 25 3
332 25 3
56 25 3
90 25 4
121 25 1
317 24 6
104 24 1
97 24 1
69 24 1
68 23 1
56 23 1
100 23 1
206 23 1
101 22 1
89 22 1
41 22 1
175 22 3
93 22 1
136 22 1
91 22 1
162 22 1
114 21 4
183 21 3
187 21 1
74 20 2
157 20 1
193 20 1
82 20 1