uber / cosmo
Conditional Complexity

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

Intro
Learn more...
Conditional Complexity Overall
2% | 6% | 22% | 19% | 49%
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
go4% | 8% | 19% | 18% | 47%
ts1% | 4% | 23% | 19% | 50%
tsx0% | 7% | 30% | 12% | 49%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
router5% | 9% | 19% | 18% | 48%
controlplane1% | 6% | 22% | 20% | 48%
composition0% | 4% | 18% | 15% | 60%
studio0% | 6% | 28% | 11% | 52%
data_migrations0% | 33% | 0% | 7% | 59%
cli0% | 0% | 42% | 24% | 32%
graphqlmetrics0% | 0% | 26% | 23% | 49%
protographic0% | 0% | 18% | 20% | 60%
shared0% | 0% | 25% | 45% | 28%
router-plugin0% | 0% | 34% | 0% | 65%
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
367 72 1
558 68 1
483 56 3
184 46 1
450 46 3
133 40 1
212 39 1
195 37 1
83 34 3
197 34 4
99 34 1
190 33 1
140 33 2
219 33 1
212 32 3
427 32 16
173 30 1
96 30 6
139 29 1
144 29 1
232 29 1
98 28 2
263 28 9
83 28 1
218 28 3
452 28 3
109 27 0
128 26 1
108 26 1
93 26 5
185 26 3
103 25 0
132 25 1
109 25 1
317 24 6
206 24 1
141 24 0
99 24 1
152 24 3
68 23 1
56 23 1
100 23 1
139 23 1
94 23 1
173 23 3
102 22 1
89 22 1
41 22 1