bazelbuild / rules_pkg
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 56 files with 6,596 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,532 lines of code)
    • 9 medium size files (2,925 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (651 lines of code)
    • 41 very small files (1,488 lines of code)
0% | 23% | 44% | 9% | 22%
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% | 36% | 29% | 7% | 25%
py0% | 0% | 69% | 8% | 21%
go0% | 0% | 100% | 0% | 0%
tpl0% | 0% | 0% | 73% | 26%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pkg0% | 55% | 23% | 10% | 10%
pkg/private0% | 0% | 73% | 16% | 10%
deb_packages/tools0% | 0% | 90% | 0% | 9%
pkg/legacy0% | 0% | 100% | 0% | 0%
pkg/releasing0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
toolchains/git0% | 0% | 0% | 0% | 100%
toolchains0% | 0% | 0% | 0% | 100%
deb_packages0% | 0% | 0% | 0% | 100%
pkg/rpm0% | 0% | 0% | 0% | 100%
doc_build0% | 0% | 0% | 0% | 100%
distro0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
rpm_pfg.bzl
in pkg
861 -
mappings.bzl
in pkg
671 -
update_deb_packages.go
in deb_packages/tools/update_deb_packages/src
492 17
pkg_files.bzl
in pkg/private
349 -
deb.bzl
in pkg/private/deb
344 -
pkg.bzl
in pkg
321 -
make_rpm.py
in pkg
319 15
build_tar.py
in pkg/private/tar
309 13
make_deb.py
in pkg/private/deb
307 10
archive.py
in pkg/private
269 13
rpm.bzl
in pkg/legacy
215 -
zip.bzl
in pkg/private/zip
181 -
tpl
install.py.tpl
in pkg/private
170 -
filter_directory.py
in pkg
151 2
install.bzl
in pkg
149 -
git.bzl
in pkg/releasing
90 -
print_rel_notes.py
in pkg/releasing
84 2
build_zip.py
in pkg/private/zip
82 5
path.bzl
in pkg
81 -
providers.bzl
in pkg
77 -
git.bzl
in toolchains/git
75 -
util.bzl
in pkg/private
74 -
git_configure.bzl
in toolchains/git
71 -
rpmbuild.bzl
in toolchains
63 -
deb_packages.bzl
in deb_packages
60 -
release_tools.py
in pkg/releasing
58 3
rpm.bzl
in pkg
57 -
update_deb_packages.bzl
in deb_packages/tools/update_deb_packages
54 -
rpmbuild_configure.bzl
in toolchains
50 -
defs.bzl
in pkg/releasing
49 -
git_changelog_private.py
in pkg/releasing
46 3
augment_rpm_files_install.py
in pkg/rpm
38 -
deps.bzl
in pkg
37 -
mappings.bzl
in root
32 -
helpers.py
in pkg/private
31 2
providers.bzl
in root
27 -
tpl
toc.md.tpl
in doc_build
25 -
manifest.py
in pkg/private
21 1
deps.bzl
in root
21 -
package_variables.bzl
in pkg
19 -
pkg.bzl
in root
19 -
install.bzl
in root
18 -
package_variables.bzl
in root
17 -
rpm.bzl
in root
17 -
version.bzl
in root
15 -
deb.bzl
in pkg
15 -
zip.bzl
in pkg
15 -
tpl
BUILD.tpl
in toolchains/git
14 -
tpl
template.spec.tpl
in pkg/rpm
12 -
tpl
BUILD.tpl
in toolchains
11 -
Files With Most Units (Top 13)
File# lines# units
update_deb_packages.go
in deb_packages/tools/update_deb_packages/src
492 17
make_rpm.py
in pkg
319 15
build_tar.py
in pkg/private/tar
309 13
archive.py
in pkg/private
269 13
make_deb.py
in pkg/private/deb
307 10
build_zip.py
in pkg/private/zip
82 5
release_tools.py
in pkg/releasing
58 3
git_changelog_private.py
in pkg/releasing
46 3
helpers.py
in pkg/private
31 2
filter_directory.py
in pkg
151 2
print_rel_notes.py
in pkg/releasing
84 2
manifest.py
in pkg/private
21 1
build_info.py
in pkg/private
8 1
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 39 long lines.

File# lines# units# long lines
mappings.bzl
in pkg
671 - 8
update_deb_packages.go
in deb_packages/tools/update_deb_packages/src
492 17 8
path.bzl
in pkg
81 - 6
deb_packages.bzl
in deb_packages
60 - 5
rpm_pfg.bzl
in pkg
861 - 4
deb.bzl
in pkg/private/deb
344 - 4
util.bzl
in pkg/private
74 - 1
tpl
install.py.tpl
in pkg/private
170 - 1
deps.bzl
in pkg
37 - 1
update_deb_packages.bzl
in deb_packages/tools/update_deb_packages
54 - 1