microsoft / etcd3
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 19 files with 4,550 lines of code.
    • 1 very long files (1,013 lines of code)
    • 1 long files (817 lines of code)
    • 6 medium size files (1,769 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (602 lines of code)
    • 7 very small files (349 lines of code)
22% | 17% | 38% | 13% | 7%
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
proto93% | 0% | 0% | 0% | 6%
ts0% | 24% | 53% | 12% | 8%
tla0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
proto93% | 0% | 0% | 0% | 6%
src0% | 23% | 50% | 17% | 8%
Longest Files (Top 19)
File# lines# units
proto
rpc.proto
in proto
1013 -
rpc.ts
in src
817 41
builder.ts
in src
347 61
connection-pool.ts
in src
329 17
stm.ts
in src
320 23
watch.ts
in src
300 30
election.ts
in src
267 23
lease.ts
in src
206 18
tla
watch.tla
in src
186 -
util.ts
in src
174 14
errors.ts
in src
129 8
auth.ts
in src
113 14
namespace.ts
in src
77 13
lock.ts
in src
68 6
range.ts
in src
61 7
index.ts
in src
51 7
proto
kv.proto
in proto
38 -
proto
auth.proto
in proto
28 -
options.ts
in src
26 -
Files With Most Units (Top 14)
File# lines# units
builder.ts
in src
347 61
rpc.ts
in src
817 41
watch.ts
in src
300 30
election.ts
in src
267 23
stm.ts
in src
320 23
lease.ts
in src
206 18
connection-pool.ts
in src
329 17
auth.ts
in src
113 14
util.ts
in src
174 14
namespace.ts
in src
77 13
errors.ts
in src
129 8
index.ts
in src
51 7
range.ts
in src
61 7
lock.ts
in src
68 6
Files With Long Lines (Top 2)

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

File# lines# units# long lines
tla
watch.tla
in src
186 - 3
proto
rpc.proto
in proto
1013 - 1