aws / aws-eks-best-practices
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 60 files with 2,807 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (227 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (700 lines of code)
    • 54 very small files (1,880 lines of code)
0% | 0% | 8% | 24% | 66%
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
py0% | 0% | 100% | 0% | 0%
yaml0% | 0% | 0% | 28% | 71%
go0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
projects/enable-irsa/src0% | 0% | 100% | 0% | 0%
policies/alternative-gatekeeper/policies/constraint-templates0% | 0% | 0% | 51% | 48%
policies/opa/gatekeeper/constraint-templates0% | 0% | 0% | 29% | 70%
policies/kyverno/cluster-policies0% | 0% | 0% | 50% | 49%
policies/opa/classic/configmaps0% | 0% | 0% | 0% | 100%
policies/alternative-gatekeeper/policies/constraints0% | 0% | 0% | 0% | 100%
policies/opa/gatekeeper/constraints0% | 0% | 0% | 0% | 100%
projects/imds0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
policies/alternative-gatekeeper/policies0% | 0% | 0% | 0% | 100%
policies/alternative-gatekeeper0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
main.py
in projects/enable-irsa/src
227 14
container_resource_ratios.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
192 -
psp_users.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
166 -
5-dep-resources-template.yaml
in policies/opa/gatekeeper/constraint-templates
117 -
2-dep-pod-sec-cont.yaml
in policies/kyverno/cluster-policies
114 -
2-dep-security-context-template.yaml
in policies/opa/gatekeeper/constraint-templates
111 -
1-labels-constraint-template.yaml
in policies/opa/gatekeeper/constraint-templates
99 -
8-svc-clusterip-ext-ips-allowed.yaml
in policies/opa/gatekeeper/constraint-templates
98 -
3-dep-registry-template.yaml
in policies/opa/gatekeeper/constraint-templates
91 -
7-svc-clusterip-ext-ips.yaml
in policies/opa/gatekeeper/constraint-templates
91 -
4-dep-role-ns-template.yaml
in policies/opa/gatekeeper/constraint-templates
90 -
6-dep-latest-version-template.yaml
in policies/opa/gatekeeper/constraint-templates
87 -
psp_capabilities.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
66 -
7-deployment-resources.yaml
in policies/opa/classic/configmaps
62 -
0-lib.yaml
in policies/opa/classic/configmaps
61 -
4-deployment-security-context.yaml
in policies/opa/classic/configmaps
55 -
mkdocs.yml
in root
52 -
required_probes.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
50 -
update.go
in projects/imds
47 2
psp_host_network.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
47 -
imds.go
in projects/imds
43 2
disallowed_tags.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
42 -
1-dep-pod-labels.yaml
in policies/kyverno/cluster-policies
39 -
policies-sync.yaml
in policies/alternative-gatekeeper/policies
39 -
4-dep-valid-role.yaml
in policies/kyverno/cluster-policies
37 -
psp_volumes.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
35 -
psp_privilege_escalation.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
35 -
psp_users.yaml
in policies/alternative-gatekeeper/policies/constraints
32 -
5-deployment-registry-allowed.yaml
in policies/opa/classic/configmaps
31 -
1-main.yaml
in policies/opa/classic/configmaps
31 -
6-deployment-ns-role-allowed.yaml
in policies/opa/classic/configmaps
29 -
gatekeeper-sync.yaml
in policies/alternative-gatekeeper
27 -
8-deployment-latest-image-version.yaml
in policies/opa/classic/configmaps
26 -
psp_privileged.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
26 -
psp_host_namespaces.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
25 -
3-dep-pod-valid-registry.yaml
in policies/kyverno/cluster-policies
24 -
2-deployment-labels.yaml
in policies/opa/classic/configmaps
22 -
3-deployment-spec-temp-labels.yaml
in policies/opa/classic/configmaps
22 -
10-clusterip-service-ext-ips.yaml
in policies/opa/classic/configmaps
22 -
9-clusterip-service-ext-ips.yaml
in policies/opa/classic/configmaps
20 -
8-svc-clusterip-ext-ips-allowed.yaml
in policies/opa/gatekeeper/constraints
19 -
psp_volumes.yaml
in policies/alternative-gatekeeper/policies/constraints
19 -
1-dep-labels-constraint.yaml
in policies/opa/gatekeeper/constraints
16 -
3-dep-allowed-registry-constraint.yaml
in policies/opa/gatekeeper/constraints
15 -
6-dep-latest-version-constraint.yaml
in policies/opa/gatekeeper/constraints
14 -
7-svc-clusterip-ext-ips.yaml
in policies/opa/gatekeeper/constraints
14 -
4-dep-allowed-role-ns-constraint.yaml
in policies/opa/gatekeeper/constraints
14 -
2-dep-security-context-constraint.yaml
in policies/opa/gatekeeper/constraints
14 -
5-dep-resources-constraint.yaml
in policies/opa/gatekeeper/constraints
14 -
required_probes.yaml
in policies/alternative-gatekeeper/policies/constraints
14 -
Files With Most Units (Top 3)
File# lines# units
main.py
in projects/enable-irsa/src
227 14
update.go
in projects/imds
47 2
imds.go
in projects/imds
43 2
Files With Long Lines (Top 20)

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

File# lines# units# long lines
7-deployment-resources.yaml
in policies/opa/classic/configmaps
62 - 7
5-dep-resources-template.yaml
in policies/opa/gatekeeper/constraint-templates
117 - 7
4-deployment-security-context.yaml
in policies/opa/classic/configmaps
55 - 6
2-dep-security-context-template.yaml
in policies/opa/gatekeeper/constraint-templates
111 - 6
psp_users.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
166 - 6
psp_capabilities.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
66 - 4
imds.go
in projects/imds
43 2 2
main.py
in projects/enable-irsa/src
227 14 2
1-labels-constraint-template.yaml
in policies/opa/gatekeeper/constraint-templates
99 - 2
container_resource_ratios.yaml
in policies/alternative-gatekeeper/policies/constraint-templates
192 - 2
4-dep-valid-role.yaml
in policies/kyverno/cluster-policies
37 - 1
5-deployment-registry-allowed.yaml
in policies/opa/classic/configmaps
31 - 1
2-deployment-labels.yaml
in policies/opa/classic/configmaps
22 - 1
3-deployment-spec-temp-labels.yaml
in policies/opa/classic/configmaps
22 - 1
6-deployment-ns-role-allowed.yaml
in policies/opa/classic/configmaps
29 - 1
8-deployment-latest-image-version.yaml
in policies/opa/classic/configmaps
26 - 1
9-clusterip-service-ext-ips.yaml
in policies/opa/classic/configmaps
20 - 1
10-clusterip-service-ext-ips.yaml
in policies/opa/classic/configmaps
22 - 1
8-svc-clusterip-ext-ips-allowed.yaml
in policies/opa/gatekeeper/constraint-templates
98 - 1
3-dep-registry-template.yaml
in policies/opa/gatekeeper/constraint-templates
91 - 1