GerritCodeReview / zoekt
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 58 files with 10,098 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (553 lines of code)
    • 19 medium size files (5,937 lines of codeclsfd_ftr_w_mp_ins)
    • 17 small files (2,628 lines of code)
    • 21 very small files (980 lines of code)
0% | 5% | 58% | 26% | 9%
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
go0% | 5% | 58% | 26% | 9%
bash0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 17% | 47% | 30% | 5%
web0% | 0% | 81% | 11% | 6%
query0% | 0% | 94% | 0% | 5%
build0% | 0% | 98% | 0% | 1%
cmd/zoekt-indexserver0% | 0% | 100% | 0% | 0%
shards0% | 0% | 73% | 26% | 0%
gitindex0% | 0% | 48% | 20% | 31%
cmd/zoekt-repo-index0% | 0% | 100% | 0% | 0%
cmd/zoekt-mirror-github0% | 0% | 100% | 0% | 0%
cmd/zoekt-mirror-bitbucket-server0% | 0% | 100% | 0% | 0%
cmd/zoekt-webserver0% | 0% | 100% | 0% | 0%
cmd/zoekt-archive-index0% | 0% | 0% | 100% | 0%
ctags0% | 0% | 0% | 80% | 19%
cmd/zoekt-test0% | 0% | 0% | 100% | 0%
cmd/zoekt-mirror-gerrit0% | 0% | 0% | 100% | 0%
cmd/zoekt-mirror-gitlab0% | 0% | 0% | 100% | 0%
cmd/zoekt0% | 0% | 0% | 100% | 0%
cmd/zoekt-index0% | 0% | 0% | 100% | 0%
cmd/zoekt-mirror-gitiles0% | 0% | 0% | 0% | 100%
cmd/zoekt-git-index0% | 0% | 0% | 0% | 100%
cmd/zoekt-hg-index0% | 0% | 0% | 0% | 100%
cmd/zoekt-git-clone0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
matchtree.go
in root
553 38
server.go
in web
460 14
shards.go
in shards
443 19
builder.go
in build
407 22
eval.go
in root
405 13
index.go
in gitindex
394 11
read.go
in root
384 21
parse.go
in query
382 12
templates.go
in web
369 1
query.go
in query
312 27
indexbuilder.go
in root
297 14
main.go
in cmd/zoekt-repo-index
288 5
main.go
in cmd/zoekt-mirror-github
262 10
contentprovider.go
in root
236 17
config.go
in cmd/zoekt-indexserver
226 6
main.go
in cmd/zoekt-indexserver
226 12
ctags.go
in build
222 6
main.go
in cmd/zoekt-mirror-bitbucket-server
213 6
bits.go
in root
206 19
main.go
in cmd/zoekt-webserver
205 6
json.go
in ctags
199 10
indexdata.go
in root
199 12
matchiter.go
in root
195 19
hititer.go
in root
195 20
main.go
in cmd/zoekt-archive-index
183 5
tree.go
in gitindex
163 9
watcher.go
in shards
160 6
archive.go
in cmd/zoekt-archive-index
155 6
main.go
in cmd/zoekt-test
153 4
main.go
in cmd/zoekt-mirror-gerrit
139 4
main.go
in cmd/zoekt-mirror-gitlab
137 3
api.go
in root
137 3
section.go
in root
133 19
write.go
in root
128 6
main.go
in cmd/zoekt
123 3
snippets.go
in web
119 1
main.go
in cmd/zoekt-index
110 3
toc.go
in root
89 4
repocache.go
in gitindex
79 7
cgit.go
in cmd/zoekt-mirror-gitiles
76 3
main.go
in cmd/zoekt-git-index
70 1
api.go
in web
69 -
main.go
in cmd/zoekt-mirror-gitiles
68 1
main.go
in cmd/zoekt-hg-index
64 2
clone.go
in gitindex
64 2
gitiles.go
in cmd/zoekt-mirror-gitiles
49 1
parse.go
in ctags
49 1
indexfile_unix.go
in root
47 5
main.go
in cmd/zoekt-git-clone
41 1
submodule.go
in gitindex
39 1
Files With Most Units (Top 20)
File# lines# units
matchtree.go
in root
553 38
query.go
in query
312 27
builder.go
in build
407 22
read.go
in root
384 21
hititer.go
in root
195 20
shards.go
in shards
443 19
matchiter.go
in root
195 19
section.go
in root
133 19
bits.go
in root
206 19
contentprovider.go
in root
236 17
server.go
in web
460 14
indexbuilder.go
in root
297 14
eval.go
in root
405 13
main.go
in cmd/zoekt-indexserver
226 12
indexdata.go
in root
199 12
parse.go
in query
382 12
index.go
in gitindex
394 11
main.go
in cmd/zoekt-mirror-github
262 10
json.go
in ctags
199 10
tree.go
in gitindex
163 9
Files With Long Lines (Top 15)

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

File# lines# units# long lines
templates.go
in web
369 1 29
eval.go
in root
405 13 4
shards.go
in shards
443 19 3
main.go
in cmd/zoekt-mirror-github
262 10 3
main.go
in cmd/zoekt-archive-index
183 5 3
main.go
in cmd/zoekt-repo-index
288 5 2
index.go
in gitindex
394 11 2
read.go
in root
384 21 2
main.go
in cmd/zoekt-mirror-gerrit
139 4 1
main.go
in cmd/zoekt-indexserver
226 12 1
main.go
in cmd/zoekt-mirror-gitlab
137 3 1
hititer.go
in root
195 20 1
builder.go
in build
407 22 1
contentprovider.go
in root
236 17 1
indexbuilder.go
in root
297 14 1