aws / aws-cloud-map-mcs-controller-for-k8s
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 68 files with 3,343 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (729 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,343 lines of code)
    • 56 very small files (1,271 lines of code)
0% | 0% | 21% | 40% | 38%
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% | 29% | 48% | 21%
yaml0% | 0% | 0% | 16% | 83%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pkg/controllers0% | 0% | 62% | 37% | 0%
pkg/cloudmap0% | 0% | 30% | 58% | 10%
pkg/api0% | 0% | 0% | 70% | 29%
pkg/model0% | 0% | 0% | 80% | 19%
config/crd0% | 0% | 0% | 51% | 48%
integration/scenarios0% | 0% | 0% | 71% | 28%
config/rbac0% | 0% | 0% | 0% | 100%
integration/janitor0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
config/default0% | 0% | 0% | 0% | 100%
config/manager0% | 0% | 0% | 0% | 100%
config/certmanager0% | 0% | 0% | 0% | 100%
integration/configs0% | 0% | 0% | 0% | 100%
config/webhook0% | 0% | 0% | 0% | 100%
pkg/common0% | 0% | 0% | 0% | 100%
config/prometheus0% | 0% | 0% | 0% | 100%
pkg/version0% | 0% | 0% | 0% | 100%
config/controller_install_latest0% | 0% | 0% | 0% | 100%
config/controller_install_release0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
serviceexport_controller.go
in pkg/controllers
259 9
cloudmap_controller.go
in pkg/controllers
237 11
client.go
in pkg/cloudmap
233 11
api.go
in pkg/cloudmap
194 12
zz_generated.deepcopy.go
in pkg/api/v1alpha1
188 22
utils.go
in pkg/controllers
180 14
types.go
in pkg/model
166 13
multicluster.x-k8s.io_serviceimports.yaml
in config/crd/bases
144 -
cache.go
in pkg/cloudmap
125 13
operation_poller.go
in pkg/cloudmap
122 8
endpointslice_plan.go
in pkg/controllers
120 6
export_service.go
in integration/scenarios
104 3
main.go
in root
94 2
janitor.go
in integration/janitor
79 4
multicluster.x-k8s.io_serviceexports.yaml
in config/crd/bases
78 -
role.yaml
in config/rbac
65 -
manager.yaml
in config/manager
62 -
operation_collector.go
in pkg/cloudmap
60 5
serviceimport_types.go
in pkg/api/v1alpha1
43 1
plan.go
in pkg/model
41 4
main.go
in integration/scenarios/runner
41 3
leader_election_role.yaml
in config/rbac
36 -
logger.go
in pkg/common
35 6
api.go
in integration/janitor
33 3
serviceexport_types.go
in pkg/api/v1alpha1
25 1
manager_auth_proxy_patch.yaml
in config/default
24 -
aws_facade.go
in pkg/cloudmap
23 1
serviceimport_editor_role.yaml
in config/rbac
23 -
serviceexport_editor_role.yaml
in config/rbac
23 -
manager_webhook_patch.yaml
in config/default
23 -
e2e-deployment.yaml
in integration/configs
22 -
certificate.yaml
in config/certmanager
21 -
kustomizeconfig.yaml
in config/webhook
21 -
manager_config_patch.yaml
in config/default
20 -
serviceimport_viewer_role.yaml
in config/rbac
19 -
serviceexport_viewer_role.yaml
in config/rbac
19 -
monitor.yaml
in config/prometheus
18 -
aws_facade.go
in integration/janitor
18 1
auth_proxy_role.yaml
in config/rbac
17 -
version.go
in pkg/version
16 1
kustomizeconfig.yaml
in config/crd
16 -
main.go
in integration/janitor/runner
16 1
kustomization.yaml
in config/manager
15 -
auth_proxy_service.yaml
in config/rbac
14 -
kustomizeconfig.yaml
in config/certmanager
14 -
webhook_in_serviceexports.yaml
in config/crd/patches
13 -
webhook_in_serviceimports.yaml
in config/crd/patches
13 -
webhookcainjection_patch.yaml
in config/default
13 -
role_binding.yaml
in config/rbac
12 -
auth_proxy_role_binding.yaml
in config/rbac
12 -
Files With Most Units (Top 20)
File# lines# units
zz_generated.deepcopy.go
in pkg/api/v1alpha1
188 22
utils.go
in pkg/controllers
180 14
types.go
in pkg/model
166 13
cache.go
in pkg/cloudmap
125 13
api.go
in pkg/cloudmap
194 12
cloudmap_controller.go
in pkg/controllers
237 11
client.go
in pkg/cloudmap
233 11
serviceexport_controller.go
in pkg/controllers
259 9
operation_poller.go
in pkg/cloudmap
122 8
endpointslice_plan.go
in pkg/controllers
120 6
logger.go
in pkg/common
35 6
operation_collector.go
in pkg/cloudmap
60 5
plan.go
in pkg/model
41 4
janitor.go
in integration/janitor
79 4
export_service.go
in integration/scenarios
104 3
main.go
in integration/scenarios/runner
41 3
api.go
in integration/janitor
33 3
main.go
in root
94 2
serviceimport_types.go
in pkg/api/v1alpha1
43 1
serviceexport_types.go
in pkg/api/v1alpha1
25 1
Files With Long Lines (Top 11)

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

File# lines# units# long lines
cloudmap_controller.go
in pkg/controllers
237 11 9
api.go
in pkg/cloudmap
194 12 8
client.go
in pkg/cloudmap
233 11 6
serviceexport_controller.go
in pkg/controllers
259 9 4
aws_facade.go
in pkg/cloudmap
23 1 4
endpointslice_plan.go
in pkg/controllers
120 6 3
operation_poller.go
in pkg/cloudmap
122 8 3
multicluster.x-k8s.io_serviceimports.yaml
in config/crd/bases
144 - 2
multicluster.x-k8s.io_serviceexports.yaml
in config/crd/bases
78 - 2
utils.go
in pkg/controllers
180 14 1
export_service.go
in integration/scenarios
104 3 1