awslabs / tough
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 57 files with 8,892 lines of code.
    • 0 very long files (0 lines of code)
    • 5 long files (3,326 lines of code)
    • 6 medium size files (1,969 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (1,884 lines of code)
    • 33 very small files (1,713 lines of code)
0% | 37% | 22% | 21% | 19%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
rs0% | 38% | 22% | 21% | 17%
toml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tough/src0% | 55% | 16% | 18% | 8%
tuftool/src0% | 0% | 34% | 31% | 34%
olpc-cjson/src0% | 0% | 96% | 0% | 3%
tough-kms/src0% | 0% | 0% | 54% | 45%
tough-ssm/src0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
tuftool0% | 0% | 0% | 0% | 100%
tough0% | 0% | 0% | 0% | 100%
tough-kms0% | 0% | 0% | 0% | 100%
tough-ssm0% | 0% | 0% | 0% | 100%
integ/failure-server0% | 0% | 0% | 0% | 100%
olpc-cjson0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
lib.rs
in tough/src
907 26
mod.rs
in tough/src/schema
829 29
mod.rs
in tough/src/editor
564 6
signed.rs
in tough/src/editor
513 6
error.rs
in tough/src
513 1
targets.rs
in tough/src/editor
446 2
root.rs
in tuftool/src
357 12
lib.rs
in olpc-cjson/src
316 20
http.rs
in tough/src
312 12
error.rs
in tuftool/src
297 -
target_name.rs
in tough/src
241 23
main.rs
in tuftool/src
189 9
transport.rs
in tough/src
173 9
key.rs
in tough/src/schema
162 2
add_role.rs
in tuftool/src
157 2
verify.rs
in tough/src/schema
150 7
lib.rs
in tough-kms/src
149 6
spki.rs
in tough/src/schema
149 7
update.rs
in tuftool/src
145 2
cache.rs
in tough/src
145 5
test.rs
in tough/src/editor
139 9
io.rs
in tough/src
115 4
clone.rs
in tuftool/src
107 1
sign.rs
in tough/src
104 8
error.rs
in tough/src/schema
100 2
decoded.rs
in tough/src/schema
100 11
download.rs
in tuftool/src
99 2
error.rs
in tough-kms/src
96 -
keys.rs
in tough/src/editor
85 -
create.rs
in tuftool/src
83 -
update_targets.rs
in tuftool/src
81 1
de.rs
in tough/src/schema
80 5
add_key_role.rs
in tuftool/src
72 1
lib.rs
in tough-ssm/src
70 2
datastore.rs
in tough/src
70 3
source.rs
in tuftool/src
60 -
remove_key_role.rs
in tuftool/src
58 1
error.rs
in tough-ssm/src
57 -
remove_role.rs
in tuftool/src
57 1
deny.toml
in root
55 -
create_role.rs
in tuftool/src
51 1
datetime.rs
in tuftool/src
47 -
Cargo.toml
in tuftool
44 -
download_root.rs
in tuftool/src
41 1
fetch.rs
in tough/src
39 -
Cargo.toml
in tough
37 -
key_source.rs
in tough/src
33 3
Cargo.toml
in tough-kms
29 -
client.rs
in tough-kms/src
27 -
client.rs
in tough-ssm/src
27 -
Files With Most Units (Top 20)
File# lines# units
mod.rs
in tough/src/schema
829 29
lib.rs
in tough/src
907 26
target_name.rs
in tough/src
241 23
lib.rs
in olpc-cjson/src
316 20
root.rs
in tuftool/src
357 12
http.rs
in tough/src
312 12
decoded.rs
in tough/src/schema
100 11
main.rs
in tuftool/src
189 9
transport.rs
in tough/src
173 9
test.rs
in tough/src/editor
139 9
sign.rs
in tough/src
104 8
spki.rs
in tough/src/schema
149 7
verify.rs
in tough/src/schema
150 7
lib.rs
in tough-kms/src
149 6
mod.rs
in tough/src/editor
564 6
signed.rs
in tough/src/editor
513 6
cache.rs
in tough/src
145 5
de.rs
in tough/src/schema
80 5
io.rs
in tough/src
115 4
datastore.rs
in tough/src
70 3
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 5 long lines.

File# lines# units# long lines
error.rs
in tough-kms/src
96 - 1
deny.toml
in root
55 - 1
error.rs
in tuftool/src
297 - 1
lib.rs
in tough/src
907 26 1
mod.rs
in tough/src/schema
829 29 1