aws / aws-nitro-enclaves-acm
Unit Size

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

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 237 units with 7,264 lines of code in units (47.2% of code).
    • 12 very long units (2,252 lines of code)
    • 32 long units (2,200 lines of code)
    • 51 medium size units (1,753 lines of code)
    • 34 small units (527 lines of code)
    • 108 very small units (532 lines of code)
31% | 30% | 24% | 7% | 7%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs31% | 30% | 24% | 7% | 7%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/vtok_p11/src37% | 33% | 20% | 3% | 5%
src/vtok_agent/src0% | 31% | 23% | 26% | 18%
src/vtok_srv/src0% | 0% | 79% | 14% | 6%
src/vtok_rpc/src0% | 0% | 39% | 32% | 27%
src/vtok_tool/src0% | 0% | 64% | 13% | 21%
src/vtok_init/src0% | 0% | 100% | 0% | 0%
src/vtok_common/src0% | 0% | 0% | 71% | 28%
src/vtok_srv0% | 0% | 0% | 0% | 100%
src/vtok_p110% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
fn bindgen_test_layout_CK_FUNCTION_LIST()
in src/vtok_p11/src/pkcs11.rs
756 1 0
fn bindgen_test_layout_CK_TOKEN_INFO()
in src/vtok_p11/src/pkcs11.rs
202 1 0
189 1 0
152 1 0
134 1 0
130 1 0
122 1 0
118 1 0
117 1 0
115 1 0
109 1 0
fn bindgen_test_layout_CK_CMS_SIG_PARAMS()
in src/vtok_p11/src/pkcs11.rs
108 1 0
fn satisfy_target()
in src/vtok_agent/src/agent/mngtok.rs
98 3 1
98 1 0
85 1 0
fn bindgen_test_layout_CK_WTLS_PRF_PARAMS()
in src/vtok_p11/src/pkcs11.rs
84 1 0
78 1 0
78 1 0
76 1 0
fn bindgen_test_layout_CK_TLS_KDF_PARAMS()
in src/vtok_p11/src/pkcs11.rs
74 1 0