File Size Overall
  • There are 25 files with 1,707 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (266 lines of code)
    • 5 small files (637 lines of code)
    • 19 very small files (804 lines of code)
0% | 0% | 15% | 37% | 47%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
go0% | 0% | 19% | 37% | 42%
yaml0% | 0% | 0% | 35% | 64%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cmd0% | 0% | 46% | 25% | 27%
internal0% | 0% | 0% | 36% | 63%
pkg0% | 0% | 0% | 100% | 0%
cloudformation0% | 0% | 0% | 100% | 0%
k8s0% | 0% | 0% | 0% | 100%
.github0% | 0% | 0% | 0% | 100%
Longest Files (Top 25)
File# lines# units
restore.go
in cmd/api/handlers
266 10
main.go
in cmd/worker
146 5
batch_job.go
in internal/s3utils
143 3
job_creator.go
in pkg/kubernetes
126 3
template.yaml
in cloudformation
121 -
monitor.go
in internal/s3utils
101 4
95 -
download.go
in internal/s3utils
87 3
mock_s3_client.go
in cmd/api/handlers
70 8
main.go
in cmd/api
69 3
manifest.go
in internal/s3utils
63 1
upload.go
in internal/s3utils
59 2
mock_s3_client.go
in internal/s3utils
54 6
email.go
in internal/notification
53 2
48 -
types.go
in internal/types
43 -
s3_client.go
in internal/s3utils
38 4
dependabot.yml
in .github
37 -
account.go
in internal/s3utils
24 1
17 -
13 -
s3_client.go
in cmd/api/handlers
10 -
9 -
interfaces.go
in internal/s3utils
9 -
interfaces.go
in cmd/api/handlers
6 -
Files With Most Units (Top 14)
File# lines# units
restore.go
in cmd/api/handlers
266 10
mock_s3_client.go
in cmd/api/handlers
70 8
mock_s3_client.go
in internal/s3utils
54 6
main.go
in cmd/worker
146 5
monitor.go
in internal/s3utils
101 4
s3_client.go
in internal/s3utils
38 4
main.go
in cmd/api
69 3
download.go
in internal/s3utils
87 3
batch_job.go
in internal/s3utils
143 3
job_creator.go
in pkg/kubernetes
126 3
upload.go
in internal/s3utils
59 2
email.go
in internal/notification
53 2
manifest.go
in internal/s3utils
63 1
account.go
in internal/s3utils
24 1
Files With Long Lines (Top 14)

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

File# lines# units# long lines
mock_s3_client.go
in cmd/api/handlers
70 8 7
restore.go
in cmd/api/handlers
266 10 4
mock_s3_client.go
in internal/s3utils
54 6 4
main.go
in cmd/worker
146 5 3
s3_client.go
in cmd/api/handlers
10 - 2
interfaces.go
in internal/s3utils
9 - 2
s3_client.go
in internal/s3utils
38 4 2
batch_job.go
in internal/s3utils
143 3 2
job_creator.go
in pkg/kubernetes
126 3 2
95 - 1
manifest.go
in internal/s3utils
63 1 1
upload.go
in internal/s3utils
59 2 1
download.go
in internal/s3utils
87 3 1
account.go
in internal/s3utils
24 1 1
Correlations

File Size vs. Commits (all time): 25 points

cmd/api/handlers/restore.go x: 21 commits (all time) y: 266 lines of code .github/dependabot.yml x: 3 commits (all time) y: 37 lines of code cloudformation/template.yaml x: 2 commits (all time) y: 121 lines of code cmd/worker/main.go x: 9 commits (all time) y: 146 lines of code internal/s3utils/download.go x: 8 commits (all time) y: 87 lines of code internal/types/types.go x: 7 commits (all time) y: 43 lines of code pkg/kubernetes/job_creator.go x: 5 commits (all time) y: 126 lines of code internal/s3utils/account.go x: 2 commits (all time) y: 24 lines of code internal/s3utils/interfaces.go x: 2 commits (all time) y: 9 lines of code internal/s3utils/monitor.go x: 2 commits (all time) y: 101 lines of code internal/notification/email.go x: 5 commits (all time) y: 53 lines of code cmd/api/main.go x: 10 commits (all time) y: 69 lines of code cmd/api/handlers/mock_s3_client.go x: 1 commits (all time) y: 70 lines of code cmd/api/handlers/s3_client.go x: 1 commits (all time) y: 10 lines of code internal/s3utils/manifest.go x: 3 commits (all time) y: 63 lines of code internal/s3utils/upload.go x: 2 commits (all time) y: 59 lines of code internal/s3utils/batch_job.go x: 2 commits (all time) y: 143 lines of code cmd/api/handlers/interfaces.go x: 1 commits (all time) y: 6 lines of code internal/s3utils/mock_s3_client.go x: 1 commits (all time) y: 54 lines of code internal/s3utils/s3_client.go x: 1 commits (all time) y: 38 lines of code k8s/deployment.yaml x: 2 commits (all time) y: 48 lines of code k8s/ingress.yaml x: 2 commits (all time) y: 95 lines of code k8s/service.yaml x: 2 commits (all time) y: 17 lines of code k8s/job-creator-role.yaml x: 1 commits (all time) y: 9 lines of code k8s/job-creator-rolebinding.yaml x: 1 commits (all time) y: 13 lines of code
266.0
lines of code
  min: 6.0
  average: 68.28
  25th percentile: 20.5
  median: 54.0
  75th percentile: 98.0
  max: 266.0
0 21.0
commits (all time)
min: 1.0 | average: 3.84 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 5.0 | max: 21.0

File Size vs. Contributors (all time): 25 points

cmd/api/handlers/restore.go x: 1 contributors (all time) y: 266 lines of code .github/dependabot.yml x: 1 contributors (all time) y: 37 lines of code cloudformation/template.yaml x: 1 contributors (all time) y: 121 lines of code cmd/worker/main.go x: 1 contributors (all time) y: 146 lines of code internal/s3utils/download.go x: 1 contributors (all time) y: 87 lines of code internal/types/types.go x: 1 contributors (all time) y: 43 lines of code pkg/kubernetes/job_creator.go x: 1 contributors (all time) y: 126 lines of code internal/s3utils/account.go x: 1 contributors (all time) y: 24 lines of code internal/s3utils/interfaces.go x: 1 contributors (all time) y: 9 lines of code internal/s3utils/monitor.go x: 1 contributors (all time) y: 101 lines of code internal/notification/email.go x: 1 contributors (all time) y: 53 lines of code cmd/api/main.go x: 1 contributors (all time) y: 69 lines of code cmd/api/handlers/mock_s3_client.go x: 1 contributors (all time) y: 70 lines of code cmd/api/handlers/s3_client.go x: 1 contributors (all time) y: 10 lines of code internal/s3utils/manifest.go x: 1 contributors (all time) y: 63 lines of code internal/s3utils/upload.go x: 1 contributors (all time) y: 59 lines of code internal/s3utils/batch_job.go x: 1 contributors (all time) y: 143 lines of code cmd/api/handlers/interfaces.go x: 1 contributors (all time) y: 6 lines of code internal/s3utils/mock_s3_client.go x: 1 contributors (all time) y: 54 lines of code internal/s3utils/s3_client.go x: 1 contributors (all time) y: 38 lines of code k8s/deployment.yaml x: 1 contributors (all time) y: 48 lines of code k8s/ingress.yaml x: 1 contributors (all time) y: 95 lines of code k8s/service.yaml x: 1 contributors (all time) y: 17 lines of code k8s/job-creator-rolebinding.yaml x: 1 contributors (all time) y: 13 lines of code
266.0
lines of code
  min: 6.0
  average: 68.28
  25th percentile: 20.5
  median: 54.0
  75th percentile: 98.0
  max: 266.0
0 1.0
contributors (all time)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".

About This Analysis
  • 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...