bazelbuild / rules_k8s
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 25 files with 1,854 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (502 lines of code)
    • 1 medium size files (380 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (280 lines of code)
    • 21 very small files (692 lines of code)
0% | 27% | 20% | 15% | 37%
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% | 45% | 0% | 25% | 28%
go0% | 0% | 95% | 0% | 4%
tpl0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
k8s0% | 44% | 0% | 10% | 45%
k8s/go/pkg/resolver0% | 0% | 100% | 0% | 0%
toolchains/kubectl0% | 0% | 0% | 54% | 45%
images/gcloud-bazel0% | 0% | 0% | 0% | 100%
k8s/go/cmd/resolver0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 25)
File# lines# units
object.bzl
in k8s
502 -
resolver.go
in k8s/go/pkg/resolver
380 16
kubectl_configure.bzl
in toolchains/kubectl
159 -
with-defaults.bzl
in k8s
121 -
k8s.bzl
in k8s
97 -
objects.bzl
in k8s
90 -
kubectl_toolchain.bzl
in toolchains/kubectl
46 -
k8s_go_deps.bzl
in k8s
42 -
defaults.bzl
in toolchains/kubectl
41 -
stamper.py
in k8s
34 1
tpl
create.sh.tpl
in k8s
31 -
tpl
describe.sh.tpl
in k8s
31 -
tpl
delete.sh.tpl
in k8s
30 -
tpl
diff.sh.tpl
in k8s
30 -
tpl
apply.sh.tpl
in k8s
30 -
cloudbuild.yaml
in images/gcloud-bazel
30 -
tpl
replace.sh.tpl
in k8s
29 -
tpl
resolve-all.sh.tpl
in k8s
27 -
tpl
resolve.sh.tpl
in k8s
27 -
tpl
BUILD.target.tpl
in toolchains/kubectl
22 -
tpl
BUILD.path.tpl
in toolchains/kubectl
22 -
resolver.go
in k8s/go/cmd/resolver
19 1
reverser.py
in k8s
12 1
__init__.py
in root
1 -
__init__.py
in k8s
1 -
Files With Most Units (Top 4)
File# lines# units
resolver.go
in k8s/go/pkg/resolver
380 16
reverser.py
in k8s
12 1
stamper.py
in k8s
34 1
resolver.go
in k8s/go/cmd/resolver
19 1
Files With Long Lines (Top 5)

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

File# lines# units# long lines
resolver.go
in k8s/go/pkg/resolver
380 16 8
k8s.bzl
in k8s
97 - 2
kubectl_configure.bzl
in toolchains/kubectl
159 - 2
tpl
replace.sh.tpl
in k8s
29 - 1
tpl
resolve.sh.tpl
in k8s
27 - 1