GerritCodeReview / k8s-gerrit
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 133 files with 11,659 lines of code.
    • 1 very long files (1,138 lines of code)
    • 3 long files (1,983 lines of code)
    • 11 medium size files (2,719 lines of codeclsfd_ftr_w_mp_ins)
    • 17 small files (2,248 lines of code)
    • 101 very small files (3,571 lines of code)
9% | 17% | 23% | 19% | 30%
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
yaml10% | 18% | 22% | 19% | 29%
py0% | 0% | 35% | 21% | 43%
tpl0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
istio/src15% | 18% | 19% | 18% | 28%
istio0% | 98% | 0% | 0% | 1%
helm-charts/gerrit-replica/templates0% | 0% | 35% | 31% | 32%
helm-charts/gerrit/templates0% | 0% | 33% | 14% | 51%
helm-charts/gerrit-replica0% | 0% | 90% | 0% | 9%
container-images/gerrit-init/tools0% | 0% | 35% | 21% | 43%
helm-charts/gerrit0% | 0% | 0% | 97% | 2%
supplements0% | 0% | 0% | 0% | 100%
helm-charts/gerrit/supplements0% | 0% | 0% | 0% | 100%
helm-charts/gerrit-replica/supplements0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
container-images/gerrit-init/config0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
destinationrules.networking.istio.io-crd.yaml
in istio/src
1138 -
virtualservices.networking.istio.io-crd.yaml
in istio/src
813 -
istio-sidecar-injector-cm.yaml
in istio/src
606 -
gerrit.profile.yaml
in istio
564 -
sidecars.networking.istio.io-crd.yaml
in istio/src
346 -
gerrit-replica.deployment.yaml
in helm-charts/gerrit-replica/templates
344 -
httpapispecs.config.istio.io-crd.yaml
in istio/src
271 -
gerrit.stateful-set.yaml
in helm-charts/gerrit/templates
248 -
prometheus-cm.yaml
in istio/src
246 -
values.yaml
in helm-charts/gerrit-replica
230 -
download_plugins.py
in container-images/gerrit-init/tools/gerrit-initializer/initializer/tasks
212 21
netpol.yaml
in helm-charts/gerrit-replica/templates
210 -
istio-ingressgateway-deployment.yaml
in istio/src
208 -
servicerolebindings.rbac.istio.io-crd.yaml
in istio/src
203 -
authorizationpolicies.security.istio.io-crd.yaml
in istio/src
201 -
handlers.config.istio.io-crd.yaml
in istio/src
177 -
prometheus-deployment.yaml
in istio/src
170 -
values.yaml
in helm-charts/gerrit
162 -
serviceentries.networking.istio.io-crd.yaml
in istio/src
162 -
rules.config.istio.io-crd.yaml
in istio/src
157 -
git-repositories-init.job.yaml
in helm-charts/gerrit-replica/templates
133 -
istiod-deployment.yaml
in istio/src
132 -
reindex.py
in container-images/gerrit-init/tools/gerrit-initializer/initializer/tasks
129 11
envoyfilters.networking.istio.io-crd.yaml
in istio/src
127 -
git-backend.deployment.yaml
in helm-charts/gerrit-replica/templates
126 -
istio.ingressgateway.yaml
in helm-charts/gerrit-replica/templates
123 -
serviceroles.rbac.istio.io-crd.yaml
in istio/src
112 -
kiali-deployment.yaml
in istio/src
111 -
netpol.yaml
in helm-charts/gerrit/templates
110 -
stats-filter-1.5-envoyfilter.yaml
in istio/src
106 -
stats-filter-1.6-envoyfilter.yaml
in istio/src
106 -
git-gc.cronjob.yaml
in helm-charts/gerrit-replica/templates
105 -
gateways.networking.istio.io-crd.yaml
in istio/src
100 -
tcp-stats-filter-1.5-envoyfilter.yaml
in istio/src
99 -
tcp-stats-filter-1.6-envoyfilter.yaml
in istio/src
99 -
httpapispecbindings.config.istio.io-crd.yaml
in istio/src
95 -
quotaspecs.config.istio.io-crd.yaml
in istio/src
95 -
stats-filter-1.4-envoyfilter.yaml
in istio/src
94 -
promtail.configmap.yaml
in helm-charts/gerrit-replica/templates
89 -
rbacconfigs.rbac.istio.io-crd.yaml
in istio/src
89 -
clusterrbacconfigs.rbac.istio.io-crd.yaml
in istio/src
88 -
workloadentries.networking.istio.io-crd.yaml
in istio/src
86 -
quotaspecbindings.config.istio.io-crd.yaml
in istio/src
82 -
peerauthentications.security.istio.io-crd.yaml
in istio/src
80 -
gerrit-slave.minikube.values.yaml
in supplements
76 -
gerrit-master.minikube.values.yaml
in supplements
73 -
init.py
in container-images/gerrit-init/tools/gerrit-initializer/initializer/tasks
73 7
ingress.yaml
in helm-charts/gerrit-replica/templates
70 -
gerrit.configmap.yaml
in helm-charts/gerrit/templates
67 -
gerrit-replica.configmap.yaml
in helm-charts/gerrit-replica/templates
67 -
Files With Most Units (Top 8)
File# lines# units
download_plugins.py
in container-images/gerrit-init/tools/gerrit-initializer/initializer/tasks
212 21
reindex.py
in container-images/gerrit-init/tools/gerrit-initializer/initializer/tasks
129 11
init.py
in container-images/gerrit-init/tools/gerrit-initializer/initializer/tasks
73 7
git.py
in container-images/gerrit-init/tools/gerrit-initializer/initializer/helpers
45 6
main.py
in container-images/gerrit-init/tools/gerrit-initializer
57 5
validate_notedb.py
in container-images/gerrit-init/tools/gerrit-initializer/initializer/tasks
36 4
init_config.py
in container-images/gerrit-init/tools/gerrit-initializer/initializer/config
34 3
log.py
in container-images/gerrit-init/tools/gerrit-initializer/initializer/helpers
8 1
Files With Long Lines (Top 9)

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

File# lines# units# long lines
istio-sidecar-injector-cm.yaml
in istio/src
606 - 28
istiooperators.install.istio.io-crd.yaml
in istio/src
59 - 4
tpl
_helpers.tpl
in helm-charts/gerrit/templates
18 - 1
git-backend.secrets.yaml
in helm-charts/gerrit-replica/templates
12 - 1
tpl
_helpers.tpl
in helm-charts/gerrit-replica/templates
18 - 1
prometheus-cm.yaml
in istio/src
246 - 1
attributemanifests.config.istio.io-crd.yaml
in istio/src
39 - 1
rules.config.istio.io-crd.yaml
in istio/src
157 - 1
istiod-istio-system-cr.yaml
in istio/src
65 - 1