GerritCodeReview / aws-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 33 files with 7,810 lines of code.
    • 0 very long files (0 lines of code)
    • 6 long files (3,933 lines of code)
    • 7 medium size files (2,288 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (902 lines of code)
    • 14 very small files (687 lines of code)
0% | 50% | 29% | 11% | 8%
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
yml0% | 51% | 30% | 9% | 8%
py0% | 0% | 0% | 82% | 17%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
dual-primary0% | 69% | 24% | 6% | 0%
primary-replica0% | 55% | 40% | 0% | 4%
single-primary0% | 69% | 25% | 0% | 4%
common-templates0% | 0% | 35% | 20% | 44%
monitoring0% | 0% | 37% | 36% | 26%
gerrit0% | 0% | 0% | 100% | 0%
maintenance0% | 0% | 0% | 100% | 0%
geo-location-routing0% | 0% | 0% | 100% | 0%
ldap0% | 0% | 0% | 0% | 100%
operations0% | 0% | 0% | 0% | 100%
Longest Files (Top 33)
File# lines# units
cf-service.yml
in single-primary
872 -
cf-service-replica.yml
in dual-primary
687 -
cf-service-replica.yml
in primary-replica
685 -
cf-service-primary.yml
in dual-primary
599 -
cf-cluster.yml
in dual-primary
563 -
cf-service-primary.yml
in primary-replica
527 -
cf-cluster.yml
in primary-replica
487 -
cf-dashboard.yml
in dual-primary
417 -
cf-dashboard.yml
in primary-replica
392 -
cf-cluster.yml
in single-primary
321 -
cf-primary-asg.yml
in common-templates
235 -
cf-service-replication.yml
in dual-primary
231 -
cf-service-grafana.yml
in monitoring
205 -
cf-service-prometheus.yml
in monitoring
199 -
setup_gerrit.py
in gerrit
179 2
cf-dns-route.yml
in dual-primary
163 -
cf-gerrit-network-stack.yml
in common-templates
134 -
cf-task-git-gc.yml
in maintenance/git-gc
122 -
cf-geo-location-routing.yml
in geo-location-routing
105 -
cf-efs-stack.yml
in common-templates
78 -
cf-ldap.yml
in ldap
75 -
cf-ecs-service-cpu-autoscaling.yml
in common-templates
68 -
cf-gerrit-task-execution-role.yml
in common-templates
61 -
cf-dns-route.yml
in monitoring
58 -
cf-dynamodb-stack.yml
in common-templates
56 -
cf-dns-route.yml
in single-primary
54 -
cf-dns-route.yml
in primary-replica
54 -
prometheus.yml
in monitoring/prometheus
51 -
setup_ssh.py
in primary-replica/git-ssh
38 1
cf-gerrit-volume.yml
in common-templates
33 -
prometheus.yml
in monitoring/grafana/provisioning/datasources
28 -
s3.bucket.permissions.yaml
in operations/export-logs
24 -
gerrit.yml
in monitoring/grafana/provisioning/dashboards
9 -
Files With Most Units (Top 2)
File# lines# units
setup_gerrit.py
in gerrit
179 2
setup_ssh.py
in primary-replica/git-ssh
38 1
Files With Long Lines (Top 17)

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

File# lines# units# long lines
cf-dashboard.yml
in dual-primary
417 - 53
cf-dashboard.yml
in primary-replica
392 - 32
cf-service.yml
in single-primary
872 - 27
cf-cluster.yml
in dual-primary
563 - 11
cf-cluster.yml
in primary-replica
487 - 10
cf-primary-asg.yml
in common-templates
235 - 6
cf-service-replica.yml
in dual-primary
687 - 4
cf-service-primary.yml
in dual-primary
599 - 4
cf-service-replica.yml
in primary-replica
685 - 4
cf-cluster.yml
in single-primary
321 - 3
cf-service-primary.yml
in primary-replica
527 - 3
setup_gerrit.py
in gerrit
179 2 2
cf-service-prometheus.yml
in monitoring
199 - 1
cf-service-replication.yml
in dual-primary
231 - 1
cf-ecs-service-cpu-autoscaling.yml
in common-templates
68 - 1
cf-efs-stack.yml
in common-templates
78 - 1
cf-task-git-gc.yml
in maintenance/git-gc
122 - 1