kubernetes / utils
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 48 files with 4,008 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 5 medium size files (1,305 lines of codeclsfd_ftr_w_mp_ins)
    • 11 small files (1,696 lines of code)
    • 32 very small files (1,007 lines of code)
0% | 0% | 32% | 42% | 25%
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
go0% | 0% | 32% | 42% | 25%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
mount0% | 0% | 66% | 19% | 13%
diff0% | 0% | 100% | 0% | 0%
clock0% | 0% | 70% | 0% | 29%
net0% | 0% | 0% | 82% | 17%
exec0% | 0% | 0% | 99% | <1%
inotify0% | 0% | 0% | 81% | 18%
trace0% | 0% | 0% | 100% | 0%
pointer0% | 0% | 0% | 100% | 0%
nsenter0% | 0% | 0% | 80% | 19%
strings0% | 0% | 0% | 0% | 100%
temp0% | 0% | 0% | 0% | 100%
io0% | 0% | 0% | 0% | 100%
field0% | 0% | 0% | 0% | 100%
env0% | 0% | 0% | 0% | 100%
lru0% | 0% | 0% | 0% | 100%
buffer0% | 0% | 0% | 0% | 100%
integer0% | 0% | 0% | 0% | 100%
path0% | 0% | 0% | 0% | 100%
keymutex0% | 0% | 0% | 0% | 100%
semantic0% | 0% | 0% | 0% | 100%
Longest Files (Top 48)
File# lines# units
mount_linux.go
in mount
359 19
diff.go
in diff
257 11
fake_clock.go
in clock/testing
251 28
mount_windows.go
in mount
221 15
mount.go
in mount
217 14
inotify_linux.go
in inotify
194 7
trace.go
in trace
187 20
fake_exec.go
in exec/testing
181 21
pointer.go
in pointer
173 24
ebtables.go
in net/ebtables
153 10
nsenter.go
in nsenter
147 14
exec.go
in exec
147 23
ipnet.go
in net
142 20
net.go
in net
136 18
fake_mounter.go
in mount
130 9
mount_helper_unix.go
in mount
106 3
clock.go
in clock
88 13
port.go
in net
85 4
mount_helper_common.go
in mount
64 3
read.go
in io
57 5
mount_helper_windows.go
in mount
55 4
path.go
in field
53 6
env.go
in env
45 4
lru.go
in lru
45 7
ring_growing.go
in buffer
45 3
integer.go
in integer
43 7
slices.go
in strings/slices
39 5
file.go
in path
38 2
dir.go
in temp/temptest
37 2
mount_unsupported.go
in mount
37 9
line_delimiter.go
in strings
35 3
dir.go
in temp
35 3
nsenter_unsupported.go
in nsenter
35 7
hashed.go
in keymutex
29 4
file.go
in temp/temptest
24 2
inotify.go
in inotify
23 -
strings.go
in strings
21 3
inotify_others.go
in inotify
21 5
simple_interval_clock.go
in clock/testing
19 2
escape.go
in strings
10 2
deep_equal.go
in semantic
8 1
parse.go
in net
6 -
keymutex.go
in keymutex
5 -
doc.go
in env
1 -
doc.go
in temp
1 -
doc.go
in temp/temptest
1 -
doc.go
in exec
1 -
doc.go
in mount
1 -
Files With Most Units (Top 20)
File# lines# units
fake_clock.go
in clock/testing
251 28
pointer.go
in pointer
173 24
exec.go
in exec
147 23
fake_exec.go
in exec/testing
181 21
ipnet.go
in net
142 20
trace.go
in trace
187 20
mount_linux.go
in mount
359 19
net.go
in net
136 18
mount_windows.go
in mount
221 15
nsenter.go
in nsenter
147 14
mount.go
in mount
217 14
clock.go
in clock
88 13
diff.go
in diff
257 11
ebtables.go
in net/ebtables
153 10
mount_unsupported.go
in mount
37 9
fake_mounter.go
in mount
130 9
inotify_linux.go
in inotify
194 7
integer.go
in integer
43 7
lru.go
in lru
45 7
nsenter_unsupported.go
in nsenter
35 7
Files With Long Lines (Top 11)

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

File# lines# units# long lines
mount_linux.go
in mount
359 19 15
mount_windows.go
in mount
221 15 11
fake_exec.go
in exec/testing
181 21 3
diff.go
in diff
257 11 2
mount_helper_unix.go
in mount
106 3 2
mount_unsupported.go
in mount
37 9 2
fake_mounter.go
in mount
130 9 2
net.go
in net
136 18 1
ebtables.go
in net/ebtables
153 10 1
trace.go
in trace
187 20 1
mount.go
in mount
217 14 1