bazelbuild / bazel-skylib
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 28 files with 2,760 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (923 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,196 lines of code)
    • 16 very small files (641 lines of code)
0% | 0% | 33% | 43% | 23%
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% | 0% | 27% | 46% | 25%
go0% | 0% | 100% | 0% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib0% | 0% | 42% | 44% | 12%
gazelle/bzl0% | 0% | 100% | 0% | 0%
rules/private0% | 0% | 0% | 100% | 0%
rules0% | 0% | 0% | 26% | 73%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 28)
File# lines# units
unittest.bzl
in lib
498 -
gazelle.go
in gazelle/bzl
214 19
selects.bzl
in lib
211 -
paths.bzl
in lib
193 -
new_sets.bzl
in lib
188 -
partial.bzl
in lib
140 -
copy_file_private.bzl
in rules/private
126 -
maprule_util.bzl
in rules/private
123 -
types.bzl
in lib
118 -
versions.bzl
in lib
104 -
write_file_private.bzl
in rules/private
102 -
native_binary.bzl
in rules
102 -
run_binary.bzl
in rules
93 -
bzl_library.bzl
in root
93 -
common_settings.bzl
in rules
86 -
collections.bzl
in lib
57 -
select_file.bzl
in rules
49 -
shell.bzl
in lib
43 -
dicts.bzl
in lib
36 -
structs.bzl
in lib
33 -
write_file.bzl
in rules
25 -
copy_file.bzl
in rules
24 -
skylark_library.bzl
in root
20 -
workspace.bzl
in root
18 -
lib.bzl
in root
18 -
sets.bzl
in lib
16 -
version.bzl
in root
15 -
old_sets.bzl
in lib
15 -
Files With Most Units (Top 1)
File# lines# units
gazelle.go
in gazelle/bzl
214 19
Files With Long Lines (Top 5)

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

File# lines# units# long lines
native_binary.bzl
in rules
102 - 3
run_binary.bzl
in rules
93 - 2
gazelle.go
in gazelle/bzl
214 19 2
copy_file_private.bzl
in rules/private
126 - 1
common_settings.bzl
in rules
86 - 1