mozilla / rust-code-analysis
Unit Size

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

Intro
Learn more...
Unit Size Overall
14% | 7% | 56% | 11% | 10%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs10% | 6% | 61% | 11% | 9%
c71% | 7% | 16% | 2% | 2%
py0% | 68% | 14% | 9% | 7%
h0% | 0% | 34% | 17% | 47%
cc0% | 0% | 57% | 0% | 42%
go0% | 0% | 0% | 55% | 45%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src9% | 6% | 63% | 11% | 8%
tree-sitter-preproc77% | 0% | 11% | 1% | 9%
tree-sitter-ccomment45% | 0% | 27% | 4% | 22%
rust-code-analysis-cli32% | 27% | 0% | 16% | 23%
ROOT0% | 68% | 14% | 9% | 7%
tree-sitter-mozjs0% | 22% | 46% | 13% | 17%
tree-sitter-mozcpp0% | 0% | 36% | 20% | 43%
enums0% | 0% | 63% | 13% | 22%
rust-code-analysis-web0% | 0% | 0% | 65% | 34%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
684 429 2
655 1 1
355 1 1
171 120 2
157 25 2
102 14 0
88 42 3
85 18 2
81 13 8
79 1 0
75 3 0
65 1 0
64 5 0
64 5 0
62 16 0
60 2 3
60 2 0
56 5 0
56 1 0
55 7 0
53 9 0
51 13 0
50 23 0
50 15 5
49 5 0
49 6 0
49 7 0
47 3 4
46 17 2
46 17 2
46 8 0
45 1 0
45 1 0
44 1 0
44 1 0
44 1 0
44 4 0
44 2 0
43 19 3
43 1 0
43 1 0
43 1 0
43 1 0
43 2 0
43 1 0
43 4 3
43 7 3
42 2 4
42 1 0
42 1 0