kubernetes / legacy-cloud-providers
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 214 files with 38,197 lines of code.
    • 6 very long files (11,337 lines of code)
    • 11 long files (7,808 lines of code)
    • 31 medium size files (9,903 lines of codeclsfd_ftr_w_mp_ins)
    • 33 small files (4,998 lines of code)
    • 133 very small files (4,151 lines of code)
29% | 20% | 25% | 13% | 10%
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
go29% | 20% | 25% | 13% | 10%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
aws76% | 0% | 6% | 11% | 4%
azure39% | 17% | 30% | 8% | 4%
vsphere50% | 23% | 12% | 9% | 3%
openstack38% | 40% | 8% | 9% | 3%
gce0% | 57% | 4% | 20% | 17%
azure/clients0% | 7% | 63% | 6% | 22%
vsphere/vclib0% | 0% | 47% | 33% | 18%
azure/mockvmsets0% | 0% | 99% | 0% | <1%
azure/retry0% | 0% | 64% | 35% | <1%
azure/auth0% | 0% | 0% | 99% | <1%
azure/metrics0% | 0% | 0% | 99% | <1%
gce/gcpcredential0% | 0% | 0% | 0% | 100%
vsphere/testing0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
aws.go
in aws
3667 146
azure_loadbalancer.go
in azure
2179 67
vsphere.go
in vsphere
1574 57
aws_loadbalancer.go
in aws
1354 34
azure_vmss.go
in azure
1316 40
openstack_loadbalancer.go
in openstack
1247 32
azure_standard.go
in azure
864 47
gce_loadbalancer_external.go
in gce
834 31
gce_loadbalancer_internal.go
in gce
786 33
gce_disks.go
in gce
769 40
vsphere_util.go
in vsphere
744 27
openstack.go
in openstack
720 37
gce.go
in gce
685 43
azure.go
in azure
663 26
gce_instances.go
in gce
615 35
openstack_volumes.go
in openstack
588 32
azure_armclient.go
in azure/clients/armclient
540 33
azure_blobDiskController.go
in azure
485 19
azure_vmssclient.go
in azure/clients/vmssclient
472 27
aws_fakes.go
in aws
441 76
azure_routes.go
in azure
428 17
nodemanager.go
in vsphere
403 24
virtualmachine.go
in vsphere/vclib
390 16
azure_controller_common.go
in azure
348 12
azure_publicipclient.go
in azure/clients/publicipclient
348 20
azure_vmclient.go
in azure/clients/vmclient
347 21
azure_backoff.go
in azure
346 21
azure_storageaccountclient.go
in azure/clients/storageaccountclient
341 20
azure_vmssvmclient.go
in azure/clients/vmssvmclient
335 18
azure_deploymentclient.go
in azure/clients/deploymentclient
329 19
azure_diskclient.go
in azure/clients/diskclient
326 20
azure_instances.go
in azure
301 14
datacenter.go
in vsphere/vclib
298 18
azure_containerserviceclient.go
in azure/clients/containerserviceclient
297 18
azure_loadbalancerclient.go
in azure/clients/loadbalancerclient
297 18
azure_securitygroupclient.go
in azure/clients/securitygroupclient
297 18
azure_subnetclient.go
in azure/clients/subnetclient
296 18
azure_snapshotclient.go
in azure/clients/snapshotclient
290 18
gce_util.go
in gce
289 32
azure_managedDiskController.go
in azure
283 7
interface.go
in azure/clients/armclient/mockarmclient
277 44
azure_vmss_cache.go
in azure
264 8
openstack_routes.go
in openstack
258 8
azure_wrap.go
in azure
254 18
azure_interfaceclient.go
in azure/clients/interfaceclient
228 10
azure_mock_vmsets.go
in azure/mockvmsets
224 38
azure_error.go
in azure/retry
208 17
vmdm.go
in vsphere/vclib/diskmanagers
203 5
tags.go
in aws
197 12
azure_instance_metadata.go
in azure
193 5
Files With Most Units (Top 20)
File# lines# units
aws.go
in aws
3667 146
aws_fakes.go
in aws
441 76
azure_loadbalancer.go
in azure
2179 67
vsphere.go
in vsphere
1574 57
azure_standard.go
in azure
864 47
interface.go
in azure/clients/armclient/mockarmclient
277 44
gce.go
in gce
685 43
gce_disks.go
in gce
769 40
azure_vmss.go
in azure
1316 40
azure_mock_vmsets.go
in azure/mockvmsets
224 38
openstack.go
in openstack
720 37
gce_instances.go
in gce
615 35
aws_loadbalancer.go
in aws
1354 34
gce_loadbalancer_internal.go
in gce
786 33
azure_armclient.go
in azure/clients/armclient
540 33
openstack_volumes.go
in openstack
588 32
openstack_loadbalancer.go
in openstack
1247 32
gce_util.go
in gce
289 32
gce_loadbalancer_external.go
in gce
834 31
gce_healthchecks.go
in gce
188 28
Files With Long Lines (Top 20)

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

File# lines# units# long lines
azure_loadbalancer.go
in azure
2179 67 118
aws.go
in aws
3667 146 94
azure_vmss.go
in azure
1316 40 70
gce_loadbalancer_external.go
in gce
834 31 66
openstack_loadbalancer.go
in openstack
1247 32 61
gce_loadbalancer_internal.go
in gce
786 33 49
aws_loadbalancer.go
in aws
1354 34 41
interface.go
in azure/clients/armclient/mockarmclient
277 44 40
azure_vmssclient.go
in azure/clients/vmssclient
472 27 37
azure_standard.go
in azure
864 47 36
interface.go
in azure/clients/vmssclient/mockvmssclient
166 28 35
vsphere.go
in vsphere
1574 57 35
aws_fakes.go
in aws
441 76 29
azure_armclient.go
in azure/clients/armclient
540 33 29
azure_mock_vmsets.go
in azure/mockvmsets
224 38 28
azure.go
in azure
663 26 25
azure_blobDiskController.go
in azure
485 19 23
vsphere_util.go
in vsphere
744 27 22
azure_vmssvmclient.go
in azure/clients/vmssvmclient
335 18 21
azure_storageaccountclient.go
in azure/clients/storageaccountclient
341 20 21