golang / vulndb
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 161 files with 20,060 lines of code.
    • 1 very long files (12,987 lines of code)
    • 0 long files (0 lines of code)
    • 10 medium size files (2,598 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,334 lines of code)
    • 140 very small files (3,141 lines of code)
64% | 0% | 12% | 6% | 15%
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
go74% | 0% | 14% | 6% | 3%
tf0% | 0% | 0% | 67% | 32%
yaml0% | 0% | 0% | 0% | 100%
bash0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
internal/worker84% | 0% | 10% | 3% | 1%
internal/report0% | 0% | 50% | 31% | 17%
cmd/vulnreport0% | 0% | 77% | 0% | 22%
cmd/worker0% | 0% | 100% | 0% | 0%
internal/database0% | 0% | 71% | 0% | 28%
internal/gitrepo0% | 0% | 0% | 100% | 0%
devtools/cmd0% | 0% | 0% | 100% | 0%
terraform/environment0% | 0% | 0% | 100% | 0%
internal/cvelistrepo0% | 0% | 0% | 100% | 0%
internal/cveschema0% | 0% | 0% | 100% | 0%
reports0% | 0% | 0% | 0% | 100%
internal/issues0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
deploy0% | 0% | 0% | 0% | 100%
terraform0% | 0% | 0% | 0% | 100%
internal0% | 0% | 0% | 0% | 100%
internal/derrors0% | 0% | 0% | 0% | 100%
cmd/gendb0% | 0% | 0% | 0% | 100%
cmd/dbdiff0% | 0% | 0% | 0% | 100%
internal/stdlib0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
false_positive_records.gen.go
in internal/worker
12987 -
gen_false_positives.go
in internal/worker
322 4
server.go
in internal/worker
314 18
update.go
in internal/worker
298 8
lint.go
in internal/report
271 11
main.go
in cmd/vulnreport
255 9
main.go
in cmd/worker
246 12
worker.go
in internal/worker
245 6
fire_store.go
in internal/worker/store
218 17
paths.go
in internal/worker
217 4
generate.go
in internal/database
212 7
triage.go
in internal/worker
170 4
cve.go
in internal/report
167 3
gitrepo.go
in internal/gitrepo
137 8
populate_firestore.go
in devtools/cmd/populate_firestore
136 3
worker.tf
in terraform/environment
129 -
cvelistrepo.go
in internal/cvelistrepo
128 6
cveschema.go
in internal/cveschema
127 2
mem_store.go
in internal/worker/store
121 14
store.go
in internal/worker/store
112 4
log.go
in internal/worker/log
107 14
report.go
in internal/report
95 6
checks.bash
in root
90 -
load.go
in internal/database
85 2
issues.go
in internal/issues
82 6
exported_functions.go
in cmd/vulnreport
73 5
gcpjson.go
in internal/worker/log
70 1
main.tf
in terraform
63 -
worker.yaml
in deploy
62 -
false_positives.go
in internal/worker
57 2
GO-2021-0098.yaml
in reports
38 -
GO-2021-0160.yaml
in reports
36 -
fake.go
in internal/issues
35 6
GO-2021-0159.yaml
in reports
34 -
internal.go
in internal
33 2
worker.css
in internal/worker/static
31 -
GO-2020-0032.yaml
in reports
31 -
GO-2021-0264.yaml
in reports
30 -
GO-2021-0226.yaml
in reports
29 -
GO-2021-0269.yaml
in reports
29 -
GO-2020-0015.yaml
in reports
29 -
GO-2021-0225.yaml
in reports
27 -
GO-2021-0058.yaml
in reports
27 -
config.go
in internal/worker
26 1
derrors.go
in internal/derrors
25 4
GO-2020-0046.yaml
in reports
25 -
GO-2020-0041.yaml
in reports
25 -
GO-2021-0072.yaml
in reports
25 -
GO-2020-0004.yaml
in reports
25 -
build.yaml
in deploy
25 -
Files With Most Units (Top 20)
File# lines# units
server.go
in internal/worker
314 18
fire_store.go
in internal/worker/store
218 17
log.go
in internal/worker/log
107 14
mem_store.go
in internal/worker/store
121 14
main.go
in cmd/worker
246 12
lint.go
in internal/report
271 11
main.go
in cmd/vulnreport
255 9
gitrepo.go
in internal/gitrepo
137 8
update.go
in internal/worker
298 8
generate.go
in internal/database
212 7
report.go
in internal/report
95 6
worker.go
in internal/worker
245 6
issues.go
in internal/issues
82 6
fake.go
in internal/issues
35 6
cvelistrepo.go
in internal/cvelistrepo
128 6
exported_functions.go
in cmd/vulnreport
73 5
derrors.go
in internal/derrors
25 4
triage.go
in internal/worker
170 4
paths.go
in internal/worker
217 4
store.go
in internal/worker/store
112 4
Files With Long Lines (Top 12)

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

File# lines# units# long lines
false_positive_records.gen.go
in internal/worker
12987 - 217
main.go
in cmd/vulnreport
255 9 2
populate_firestore.go
in devtools/cmd/populate_firestore
136 3 2
lint.go
in internal/report
271 11 2
worker.go
in internal/worker
245 6 2
generate.go
in internal/database
212 7 2
main.go
in cmd/worker
246 12 1
update.go
in internal/worker
298 8 1
triage.go
in internal/worker
170 4 1
store.go
in internal/worker/store
112 4 1
fire_store.go
in internal/worker/store
218 17 1
false_positives.go
in internal/worker
57 2 1