golang / playground
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 42 files with 4,002 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (1,600 lines of code)
    • 1 medium size files (251 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (878 lines of code)
    • 32 very small files (1,273 lines of code)
0% | 39% | 6% | 21% | 31%
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% | 49% | 7% | 15% | 27%
html0% | 0% | 0% | 100% | 0%
css0% | 0% | 0% | 71% | 28%
yaml0% | 0% | 0% | 0% | 100%
tf0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 43% | 0% | 20% | 35%
sandbox0% | 72% | 0% | 12% | 14%
internal/gcpdial0% | 0% | 89% | 0% | 10%
static0% | 0% | 0% | 59% | 40%
internal/metrics0% | 0% | 0% | 100% | 0%
deploy0% | 0% | 0% | 0% | 100%
internal0% | 0% | 0% | 0% | 100%
cmd/latestgo0% | 0% | 0% | 0% | 100%
cmd/redirect0% | 0% | 0% | 0% | 100%
sandbox/sandboxtypes0% | 0% | 0% | 0% | 100%
Longest Files (Top 42)
File# lines# units
sandbox.go
in sandbox
594 26
sandbox.go
in root
505 16
tests.go
in root
501 31
gcpdial.go
in internal/gcpdial
251 11
edit.html
in root
195 -
style.css
in static
178 -
play.go
in root
161 8
service.go
in internal/metrics
130 7
examples.go
in root
109 6
metrics.go
in sandbox
105 -
server.go
in root
94 7
sandbox.tf
in sandbox
92 -
main.go
in root
92 3
txtar.go
in root
82 7
edit.go
in root
80 1
godoc.css
in static
70 -
share.go
in root
70 3
fmt.go
in root
64 2
metrics.go
in root
62 -
vet.go
in root
61 2
internal.go
in internal
58 2
playground-embed.js
in static
52 5
store.go
in root
47 4
cache.go
in root
36 3
gcpdialtool.go
in internal/gcpdial/gcpdialtool
30 1
logger.go
in root
29 4
version.go
in root
29 1
main.go
in cmd/latestgo
28 1
go_trigger.yaml
in deploy
25 -
main.go
in cmd/redirect
21 1
gotip_schedule.yaml
in deploy
19 -
client.go
in root
18 1
app.gotip.yaml
in root
16 -
konlet.yaml
in sandbox
16 -
app.goprev.yaml
in root
15 -
app.yaml
in root
15 -
cloud-init.yaml
in sandbox
14 -
gotip_scheduled_trigger.yaml
in deploy
13 -
playground_trigger.yaml
in deploy
9 -
app.go2go.yaml
in root
8 -
types.go
in sandbox/sandboxtypes
7 -
cfg
codereview.cfg
in root
1 -
Files With Most Units (Top 20)
File# lines# units
tests.go
in root
501 31
sandbox.go
in sandbox
594 26
sandbox.go
in root
505 16
gcpdial.go
in internal/gcpdial
251 11
play.go
in root
161 8
txtar.go
in root
82 7
service.go
in internal/metrics
130 7
server.go
in root
94 7
examples.go
in root
109 6
playground-embed.js
in static
52 5
logger.go
in root
29 4
store.go
in root
47 4
cache.go
in root
36 3
share.go
in root
70 3
main.go
in root
92 3
internal.go
in internal
58 2
vet.go
in root
61 2
fmt.go
in root
64 2
main.go
in cmd/redirect
21 1
main.go
in cmd/latestgo
28 1
Files With Long Lines (Top 11)

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

File# lines# units# long lines
metrics.go
in sandbox
105 - 4
sandbox.go
in sandbox
594 26 3
edit.html
in root
195 - 2
main.go
in cmd/latestgo
28 1 1
sandbox.go
in root
505 16 1
playground-embed.js
in static
52 5 1
metrics.go
in root
62 - 1
gcpdial.go
in internal/gcpdial
251 11 1
share.go
in root
70 3 1
examples.go
in root
109 6 1
edit.go
in root
80 1 1