aws / amazon-ec2-metadata-mock
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 2,280 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,308 lines of code)
    • 32 very small files (972 lines of code)
0% | 0% | 0% | 57% | 42%
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% | 0% | 59% | 40%
yaml0% | 0% | 0% | 59% | 40%
tpl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pkg/config0% | 0% | 0% | 85% | 14%
helm/amazon-ec2-metadata-mock/templates0% | 0% | 0% | 61% | 39%
pkg/cmd/root0% | 0% | 0% | 88% | 11%
pkg/server0% | 0% | 0% | 100% | 0%
pkg/cmd/events0% | 0% | 0% | 100% | 0%
pkg/mock/handlers0% | 0% | 0% | 100% | 0%
pkg/mock/spot0% | 0% | 0% | 88% | 11%
pkg/mock/imdsv20% | 0% | 0% | 0% | 100%
pkg/mock/events0% | 0% | 0% | 0% | 100%
pkg/cmd/cmdutil0% | 0% | 0% | 0% | 100%
helm/amazon-ec2-metadata-mock0% | 0% | 0% | 0% | 100%
pkg/cmd/spot0% | 0% | 0% | 0% | 100%
pkg/mock/static0% | 0% | 0% | 0% | 100%
pkg/mock/dynamic0% | 0% | 0% | 0% | 100%
pkg/error0% | 0% | 0% | 0% | 100%
pkg/mock/root0% | 0% | 0% | 0% | 100%
helm/amazon-ec2-metadata-mock/ci0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
pkg/config/defaults0% | 0% | 0% | 0% | 100%
Longest Files (Top 42)
File# lines# units
types.go
in pkg/config
169 -
deployment.linux.yaml
in helm/amazon-ec2-metadata-mock/templates
160 -
config.go
in pkg/config
148 12
deployment.windows.yaml
in helm/amazon-ec2-metadata-mock/templates
145 -
root.go
in pkg/cmd/root
123 10
httpserver.go
in pkg/server
116 11
events.go
in pkg/cmd/events
116 7
handlers.go
in pkg/mock/handlers
112 3
metadata.go
in pkg/config
111 7
spot.go
in pkg/mock/spot
108 6
tpl
_helpers.tpl
in helm/amazon-ec2-metadata-mock/templates
92 -
cmdutil.go
in pkg/cmd/cmdutil
91 5
spot.go
in pkg/cmd/spot
89 7
events.go
in pkg/mock/events
77 4
values.yaml
in helm/amazon-ec2-metadata-mock
68 -
tokengenerator.go
in pkg/mock/imdsv2
66 2
psp.yaml
in helm/amazon-ec2-metadata-mock/templates
60 -
static.go
in pkg/mock/static
56 2
dynamic.go
in pkg/mock/dynamic
55 2
dynamic.go
in pkg/config
54 6
tokenvalidator.go
in pkg/mock/imdsv2
37 1
types.go
in pkg/mock/static/types
23 -
Chart.yaml
in helm/amazon-ec2-metadata-mock
23 -
types.go
in pkg/mock/dynamic/types
18 -
server.go
in pkg/config
17 2
globalflags.go
in pkg/cmd/root/globalflags
16 1
service.yaml
in helm/amazon-ec2-metadata-mock/templates
15 -
error.go
in pkg/error
12 1
root.go
in pkg/mock/root
12 1
clusterrolebinding.yaml
in helm/amazon-ec2-metadata-mock/templates
12 -
serviceaccount.yaml
in helm/amazon-ec2-metadata-mock/templates
11 -
amazon-ec2-metadata-mock.go
in cmd
11 1
types.go
in pkg/mock/events/internal/types
10 -
defaults.go
in pkg/config/defaults
8 1
config.go
in pkg/mock/events/config
8 -
types.go
in pkg/mock/spot/internal/types
8 -
config.go
in pkg/mock/spot/config
6 -
clusterrole.yaml
in helm/amazon-ec2-metadata-mock/templates
5 -
local-image-values.yaml
in helm/amazon-ec2-metadata-mock/ci
5 -
configmap-values.yaml
in helm/amazon-ec2-metadata-mock/ci
3 -
service-config-values.yaml
in helm/amazon-ec2-metadata-mock/ci
3 -
default-values.yaml
in helm/amazon-ec2-metadata-mock/ci
1 -
Files With Most Units (Top 20)
File# lines# units
config.go
in pkg/config
148 12
httpserver.go
in pkg/server
116 11
root.go
in pkg/cmd/root
123 10
metadata.go
in pkg/config
111 7
events.go
in pkg/cmd/events
116 7
spot.go
in pkg/cmd/spot
89 7
dynamic.go
in pkg/config
54 6
spot.go
in pkg/mock/spot
108 6
cmdutil.go
in pkg/cmd/cmdutil
91 5
events.go
in pkg/mock/events
77 4
handlers.go
in pkg/mock/handlers
112 3
server.go
in pkg/config
17 2
static.go
in pkg/mock/static
56 2
dynamic.go
in pkg/mock/dynamic
55 2
tokengenerator.go
in pkg/mock/imdsv2
66 2
error.go
in pkg/error
12 1
defaults.go
in pkg/config/defaults
8 1
root.go
in pkg/mock/root
12 1
tokenvalidator.go
in pkg/mock/imdsv2
37 1
globalflags.go
in pkg/cmd/root/globalflags
16 1
Files With Long Lines (Top 14)

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

File# lines# units# long lines
root.go
in pkg/cmd/root
123 10 9
events.go
in pkg/cmd/events
116 7 7
spot.go
in pkg/mock/spot
108 6 5
metadata.go
in pkg/config
111 7 4
spot.go
in pkg/cmd/spot
89 7 4
events.go
in pkg/mock/events
77 4 3
config.go
in pkg/config
148 12 2
httpserver.go
in pkg/server
116 11 2
deployment.linux.yaml
in helm/amazon-ec2-metadata-mock/templates
160 - 2
error.go
in pkg/error
12 1 1
static.go
in pkg/mock/static
56 2 1
globalflags.go
in pkg/cmd/root/globalflags
16 1 1
deployment.windows.yaml
in helm/amazon-ec2-metadata-mock/templates
145 - 1
tpl
_helpers.tpl
in helm/amazon-ec2-metadata-mock/templates
92 - 1