kubernetes / component-helpers
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 23 files with 1,651 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (254 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (632 lines of code)
    • 18 very small files (765 lines of code)
0% | 0% | 15% | 38% | 46%
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% | 15% | 38% | 46%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
scheduling/corev1/nodeaffinity0% | 0% | 100% | 0% | 0%
auth/rbac/reconciliation0% | 0% | 0% | 47% | 52%
apimachinery/lease0% | 0% | 0% | 100% | 0%
auth/rbac/validation0% | 0% | 0% | 100% | 0%
node/util0% | 0% | 0% | 0% | 100%
node/util/sysctl0% | 0% | 0% | 0% | 100%
scheduling/corev10% | 0% | 0% | 0% | 100%
apps/poddisruptionbudget0% | 0% | 0% | 0% | 100%
node/topology0% | 0% | 0% | 0% | 100%
storage/volume0% | 0% | 0% | 0% | 100%
storage/ephemeral0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 23)
File# lines# units
nodeaffinity.go
in scheduling/corev1/nodeaffinity
254 14
reconcile_role.go
in auth/rbac/reconciliation
194 5
reconcile_rolebindings.go
in auth/rbac/reconciliation
160 5
controller.go
in apimachinery/lease
158 8
policy_comparator.go
in auth/rbac/validation
120 8
zz_generated.deepcopy.go
in auth/rbac/reconciliation
84 12
rolebinding_interfaces.go
in auth/rbac/reconciliation
77 15
status.go
in node/util
76 3
role_interfaces.go
in auth/rbac/reconciliation
72 14
clusterrolebinding_interfaces.go
in auth/rbac/reconciliation
72 15
clusterrole_interfaces.go
in auth/rbac/reconciliation
68 14
helpers.go
in scheduling/corev1
62 6
sysctl.go
in node/util/sysctl
45 3
helpers.go
in apps/poddisruptionbudget
39 2
conditions.go
in node/util
34 2
cidr.go
in node/util
34 1
fake.go
in node/util/sysctl/testing
25 3
helpers.go
in node/topology
22 1
namespace.go
in auth/rbac/reconciliation
21 1
helpers.go
in storage/volume
17 2
ephemeral.go
in storage/ephemeral
15 2
doc.go
in scheduling/corev1
1 -
doc.go
in root
1 -
Files With Most Units (Top 20)
File# lines# units
rolebinding_interfaces.go
in auth/rbac/reconciliation
77 15
clusterrolebinding_interfaces.go
in auth/rbac/reconciliation
72 15
nodeaffinity.go
in scheduling/corev1/nodeaffinity
254 14
clusterrole_interfaces.go
in auth/rbac/reconciliation
68 14
role_interfaces.go
in auth/rbac/reconciliation
72 14
zz_generated.deepcopy.go
in auth/rbac/reconciliation
84 12
policy_comparator.go
in auth/rbac/validation
120 8
controller.go
in apimachinery/lease
158 8
helpers.go
in scheduling/corev1
62 6
reconcile_rolebindings.go
in auth/rbac/reconciliation
160 5
reconcile_role.go
in auth/rbac/reconciliation
194 5
status.go
in node/util
76 3
fake.go
in node/util/sysctl/testing
25 3
sysctl.go
in node/util/sysctl
45 3
ephemeral.go
in storage/ephemeral
15 2
helpers.go
in storage/volume
17 2
conditions.go
in node/util
34 2
helpers.go
in apps/poddisruptionbudget
39 2
namespace.go
in auth/rbac/reconciliation
21 1
cidr.go
in node/util
34 1
Files With Long Lines (Top 12)

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

File# lines# units# long lines
reconcile_role.go
in auth/rbac/reconciliation
194 5 5
policy_comparator.go
in auth/rbac/validation
120 8 4
nodeaffinity.go
in scheduling/corev1/nodeaffinity
254 14 3
rolebinding_interfaces.go
in auth/rbac/reconciliation
77 15 3
status.go
in node/util
76 3 3
reconcile_rolebindings.go
in auth/rbac/reconciliation
160 5 2
role_interfaces.go
in auth/rbac/reconciliation
72 14 2
clusterrolebinding_interfaces.go
in auth/rbac/reconciliation
72 15 2
ephemeral.go
in storage/ephemeral
15 2 1
helpers.go
in scheduling/corev1
62 6 1
controller.go
in apimachinery/lease
158 8 1
cidr.go
in node/util
34 1 1