kubernetes / repo-infra
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 21 files with 3,084 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (875 lines of code)
    • 2 medium size files (822 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (850 lines of code)
    • 12 very small files (537 lines of code)
0% | 28% | 26% | 27% | 17%
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
bzl0% | 50% | 0% | 32% | 17%
go0% | 0% | 73% | 11% | 15%
py0% | 0% | 0% | 73% | 26%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 88% | 0% | 11% | 0%
tools/build_tar0% | 0% | 100% | 0% | 0%
cmd/kazel0% | 0% | 55% | 21% | 23%
defs0% | 0% | 0% | 52% | 47%
hack0% | 0% | 0% | 97% | 2%
go0% | 0% | 0% | 100% | 0%
defs/private0% | 0% | 0% | 0% | 100%
defs/testgen0% | 0% | 0% | 0% | 100%
defs/testpkg0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
repos.bzl
in root
875 -
buildtar.go
in tools/build_tar
495 18
kazel.go
in cmd/kazel
327 15
build.bzl
in defs
180 -
verify_boilerplate.py
in hack
163 12
sdk_versions.bzl
in go
153 -
generator.go
in cmd/kazel
124 4
go.bzl
in defs
120 -
load.bzl
in root
110 -
gcilint_repository.bzl
in defs/private
85 -
run_in_workspace.bzl
in defs
83 -
sourcerer.go
in cmd/kazel
66 1
gcs_uploader.py
in defs
60 2
deb.bzl
in defs
59 -
rpm.bzl
in defs
40 -
diff.go
in cmd/kazel
35 1
config.go
in cmd/kazel
34 2
main.go
in defs/testgen
33 1
pkg.bzl
in defs
30 -
pkg.go
in defs/testpkg
7 1
tools.go
in hack
5 -
Files With Most Units (Top 10)
File# lines# units
buildtar.go
in tools/build_tar
495 18
kazel.go
in cmd/kazel
327 15
verify_boilerplate.py
in hack
163 12
generator.go
in cmd/kazel
124 4
gcs_uploader.py
in defs
60 2
config.go
in cmd/kazel
34 2
main.go
in defs/testgen
33 1
pkg.go
in defs/testpkg
7 1
sourcerer.go
in cmd/kazel
66 1
diff.go
in cmd/kazel
35 1
Files With Long Lines (Top 7)

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

File# lines# units# long lines
load.bzl
in root
110 - 5
generator.go
in cmd/kazel
124 4 4
buildtar.go
in tools/build_tar
495 18 2
repos.bzl
in root
875 - 2
gcilint_repository.bzl
in defs/private
85 - 1
build.bzl
in defs
180 - 1
kazel.go
in cmd/kazel
327 15 1