mozilla / rust-code-analysis
Conditional Complexity

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

Intro
Learn more...
Conditional Complexity Overall
5% | <1% | 6% | 8% | 77%
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
c71% | 7% | 8% | 9% | 3%
rs0% | <1% | 5% | 8% | 85%
cc0% | 0% | 57% | 0% | 42%
py0% | 0% | 26% | 0% | 73%
h0% | 0% | 0% | 17% | 82%
go0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tree-sitter-preproc77% | 0% | 5% | 1% | 15%
tree-sitter-ccomment45% | 0% | 12% | 4% | 37%
tree-sitter-mozjs0% | 22% | 25% | 21% | 30%
src0% | <1% | 4% | 8% | 86%
rust-code-analysis-cli0% | 0% | 60% | 0% | 39%
ROOT0% | 0% | 26% | 0% | 73%
tree-sitter-mozcpp0% | 0% | 0% | 29% | 70%
enums0% | 0% | 0% | 0% | 100%
rust-code-analysis-web0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
684 429 2
171 120 2
88 42 3
40 31 0
157 25 2
50 23 0
43 19 3
85 18 2
46 17 2
46 17 2
62 16 0
27 15 3
50 15 5
31 14 1
102 14 0
34 13 0
42 13 0
42 13 0
81 13 8
51 13 0
42 10 0
42 10 0
42 10 0
23 10 2
19 9 1
53 9 0
23 9 1
27 9 2
33 8 0
46 8 0
22 7 1
25 7 1
22 7 2
40 7 0
25 7 0
25 7 0
25 7 0
55 7 0
27 7 0
49 7 0
24 7 2
43 7 3
17 6 3
17 6 3
17 6 3
49 6 0
36 6 0
28 6 2
22 6 0
22 6 0