aws / cluster-api-provider-cloudstack
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 72 files with 3,332 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (477 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,576 lines of code)
    • 58 very small files (1,279 lines of code)
0% | 0% | 14% | 47% | 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% | 28% | 42% | 28%
yaml0% | 0% | 0% | 51% | 48%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
api/v1beta10% | 0% | 46% | 0% | 53%
controllers0% | 0% | 64% | 35% | 0%
config/crd0% | 0% | 0% | 80% | 19%
templates0% | 0% | 0% | 90% | 9%
pkg/cloud0% | 0% | 0% | 69% | 30%
ROOT0% | 0% | 0% | 96% | 3%
pkg/mocks0% | 0% | 0% | 100% | 0%
config/webhook0% | 0% | 0% | 75% | 25%
config/rbac0% | 0% | 0% | 0% | 100%
config/default0% | 0% | 0% | 0% | 100%
config/manager0% | 0% | 0% | 0% | 100%
pkg/webhook_utilities0% | 0% | 0% | 0% | 100%
config/certmanager0% | 0% | 0% | 0% | 100%
hack/debugging0% | 0% | 0% | 0% | 100%
config/dev0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
zz_generated.deepcopy.go
in api/v1beta1
263 32
cloudstackmachine_controller.go
in controllers
214 4
network.go
in pkg/cloud
168 9
main.go
in root
153 3
infrastructure.cluster.x-k8s.io_cloudstackmachines.yaml
in config/crd/bases
150 -
instance.go
in pkg/cloud
145 6
mock_client.go
in pkg/mocks
134 24
cluster-template-ssh-material.yaml
in templates
125 -
infrastructure.cluster.x-k8s.io_cloudstackclusters.yaml
in config/crd/bases
122 -
cloudstackcluster_controller.go
in controllers
119 4
cluster-template-managed-ssh.yaml
in templates
117 -
cluster-template.yaml
in templates
115 -
infrastructure.cluster.x-k8s.io_cloudstackmachinetemplates.yaml
in config/crd/bases
114 -
manifests.yaml
in config/webhook
114 -
role.yaml
in config/rbac
96 -
cloudstackcluster_webhook.go
in api/v1beta1
63 5
cluster.go
in pkg/cloud
60 2
cloudstackmachine_webhook.go
in api/v1beta1
60 5
cloudstackmachinetemplate_webhook.go
in api/v1beta1
60 5
client.go
in pkg/cloud
53 3
manager.yaml
in config/manager
49 -
kustomization.yaml
in config/default
46 -
cloudstackcluster_types.go
in api/v1beta1
44 1
leader_election_role.yaml
in config/rbac
43 -
webhook_validators.go
in pkg/webhook_utilities
41 4
cloudstackmachine_types.go
in api/v1beta1
38 1
debugWebhookServiceTemplate.yaml
in hack/debugging
27 -
cloudstackmachinetemplate_types.go
in api/v1beta1
24 1
cloudstackmachinetemplate_editor_role.yaml
in config/rbac
23 -
cloudstackmachine_editor_role.yaml
in config/rbac
23 -
cloudstackcluster_editor_role.yaml
in config/rbac
23 -
manager_webhook_patch.yaml
in config/default
23 -
helpers.go
in pkg/cloud
22 2
certificate.yaml
in config/certmanager
21 -
kustomizeconfig.yaml
in config/webhook
21 -
manager_config_patch.yaml
in config/default
20 -
workerMachineHealthCheck.yaml
in templates
19 -
cloudstackcluster_viewer_role.yaml
in config/rbac
19 -
cloudstackmachine_viewer_role.yaml
in config/rbac
19 -
cloudstackmachinetemplate_viewer_role.yaml
in config/rbac
19 -
manager_image_patch.yaml
in config/default
19 -
controlPlaneMachineHealthCheck.yaml
in templates
18 -
kustomizeconfig.yaml
in config/crd
16 -
insecure_manager.yaml
in config/dev
15 -
webhook_in_cloudstackclusters.yaml
in config/crd/patches
15 -
webhook_in_cloudstackmachines.yaml
in config/crd/patches
15 -
webhook_in_cloudstackmachinetemplates.yaml
in config/crd/patches
15 -
insecure_manager.yaml
in config
15 -
kustomization.yaml
in config/manager
14 -
kustomizeconfig.yaml
in config/certmanager
14 -
Files With Most Units (Top 18)
File# lines# units
zz_generated.deepcopy.go
in api/v1beta1
263 32
mock_client.go
in pkg/mocks
134 24
network.go
in pkg/cloud
168 9
instance.go
in pkg/cloud
145 6
cloudstackmachine_webhook.go
in api/v1beta1
60 5
cloudstackcluster_webhook.go
in api/v1beta1
63 5
cloudstackmachinetemplate_webhook.go
in api/v1beta1
60 5
webhook_validators.go
in pkg/webhook_utilities
41 4
conversion.go
in api/v1beta1
5 4
cloudstackcluster_controller.go
in controllers
119 4
cloudstackmachine_controller.go
in controllers
214 4
client.go
in pkg/cloud
53 3
main.go
in root
153 3
cluster.go
in pkg/cloud
60 2
helpers.go
in pkg/cloud
22 2
cloudstackcluster_types.go
in api/v1beta1
44 1
cloudstackmachinetemplate_types.go
in api/v1beta1
24 1
cloudstackmachine_types.go
in api/v1beta1
38 1
Files With Long Lines (Top 11)

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

File# lines# units# long lines
mock_client.go
in pkg/mocks
134 24 12
cloudstackcluster_webhook.go
in api/v1beta1
63 5 5
cloudstackmachine_webhook.go
in api/v1beta1
60 5 3
cloudstackmachinetemplate_webhook.go
in api/v1beta1
60 5 3
infrastructure.cluster.x-k8s.io_cloudstackmachinetemplates.yaml
in config/crd/bases
114 - 3
cloudstackmachine_controller.go
in controllers
214 4 2
infrastructure.cluster.x-k8s.io_cloudstackclusters.yaml
in config/crd/bases
122 - 2
infrastructure.cluster.x-k8s.io_cloudstackmachines.yaml
in config/crd/bases
150 - 2
webhook_validators.go
in pkg/webhook_utilities
41 4 1
instance.go
in pkg/cloud
145 6 1
cloudstackcluster_controller.go
in controllers
119 4 1