GerritCodeReview / gerrit-monitoring
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 39 files with 2,474 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (516 lines of code)
    • 3 medium size files (674 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (246 lines of code)
    • 33 very small files (1,038 lines of code)
0% | 20% | 27% | 9% | 41%
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
yaml0% | 37% | 33% | 9% | 19%
py0% | 0% | 51% | 0% | 48%
jsonnet0% | 0% | 0% | 16% | 83%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
charts/prometheus0% | 92% | 0% | 0% | 7%
charts/grafana0% | 0% | 86% | 0% | 13%
charts/promtail0% | 0% | 100% | 0% | 0%
subcommands0% | 0% | 73% | 0% | 26%
charts/loki0% | 0% | 0% | 88% | 11%
dashboards/gerrit0% | 0% | 0% | 16% | 83%
ROOT0% | 0% | 0% | 0% | 100%
promtail0% | 0% | 0% | 0% | 100%
cfgmgr0% | 0% | 0% | 0% | 100%
charts0% | 0% | 0% | 0% | 100%
Longest Files (Top 39)
File# lines# units
prometheus.yaml
in charts/prometheus
516 -
grafana.yaml
in charts/grafana
253 -
promtail.yaml
in charts/promtail
212 -
install.py
in subcommands
209 9
loki.yaml
in charts/loki
134 -
gerrit-overview.jsonnet
in dashboards/gerrit/overview
112 -
promtailLocalConfig.yaml
in promtail
84 -
config.yaml
in root
73 -
gerrit-queues.jsonnet
in dashboards/gerrit/queues
67 -
gerrit-healthcheck.jsonnet
in dashboards/gerrit/healthcheck
67 -
gerrit_monitoring.py
in root
67 4
gerrit-rest-api-latency.jsonnet
in dashboards/gerrit/latency
64 -
gerrit-replication.jsonnet
in dashboards/gerrit/replication
60 -
gerrit-process.jsonnet
in dashboards/gerrit/process
57 -
gerrit-caches.jsonnet
in dashboards/gerrit/caches
52 -
gerrit-ui-actions-latency.jsonnet
in dashboards/gerrit/latency
48 -
gerrit-push-latency.jsonnet
in dashboards/gerrit/latency
45 -
gerrit-notedb-latency.jsonnet
in dashboards/gerrit/latency
44 -
gerrit-fetch-clone.jsonnet
in dashboards/gerrit/fetch-clone
40 -
encrypt.py
in subcommands
38 1
gerrit-query-latency.jsonnet
in dashboards/gerrit/latency
38 -
uninstall.py
in subcommands
28 4
abstract.py
in cfgmgr
27 4
prometheus.pvc.yaml
in charts/prometheus/storage
14 -
grafana.pvc.yaml
in charts/grafana/storage
14 -
prometheus.secret.yaml
in charts/prometheus/configuration
13 -
grafana.secret.yaml
in charts/grafana/configuration
10 -
__init__.py
in cfgmgr
9 1
prometheus.tls.secret.yaml
in charts/prometheus/configuration
9 -
grafana.tls.secret.yaml
in charts/grafana/configuration
9 -
loki.tls.secret.yaml
in charts/loki/configuration
9 -
sops.py
in cfgmgr
8 1
prometheus.basic-auth.secret.yaml
in charts/prometheus/configuration
8 -
grafana.ca.secret.yaml
in charts/grafana/configuration
8 -
loki.basic-auth.secret.yaml
in charts/loki/configuration
8 -
default.py
in cfgmgr
7 1
_globals.py
in subcommands
6 -
namespace.yaml
in charts
4 -
__init__.py
in subcommands
3 -
Files With Most Units (Top 8)
File# lines# units
install.py
in subcommands
209 9
uninstall.py
in subcommands
28 4
gerrit_monitoring.py
in root
67 4
abstract.py
in cfgmgr
27 4
encrypt.py
in subcommands
38 1
sops.py
in cfgmgr
8 1
__init__.py
in cfgmgr
9 1
default.py
in cfgmgr
7 1
Files With Long Lines (Top 0)

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

File# lines# units# long lines