GerritCodeReview / bazlets
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 30 files with 2,067 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (506 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (537 lines of code)
    • 25 very small files (1,024 lines of code)
0% | 24% | 0% | 25% | 49%
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% | 34% | 0% | 17% | 47%
py0% | 0% | 0% | 52% | 47%
java0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tools0% | 43% | 0% | 23% | 33%
tools/eclipse0% | 0% | 0% | 100% | 0%
tools/js0% | 0% | 0% | 60% | 39%
ROOT0% | 0% | 0% | 0% | 100%
tools/maven0% | 0% | 0% | 0% | 100%
tools/sonar0% | 0% | 0% | 0% | 100%
lib/prolog/java0% | 0% | 0% | 0% | 100%
lib/prolog0% | 0% | 0% | 0% | 100%
lib/js0% | 0% | 0% | 0% | 100%
lib/js/externs0% | 0% | 0% | 0% | 100%
Longest Files (Top 30)
File# lines# units
js.bzl
in tools
506 -
project.py
in tools/eclipse
160 7
maven_jar.bzl
in tools
151 -
download_file.py
in tools
120 3
eslint.bzl
in tools/js
106 -
pkg_war.bzl
in tools
98 -
package.bzl
in tools/maven
77 -
gerrit_plugin.bzl
in root
76 -
junit.bzl
in tools
70 -
javadoc.bzl
in tools
70 -
mvn.py
in tools/maven
68 1
PrologCompiler.java
in lib/prolog/java
66 4
run_npm_binary.py
in tools/js
63 2
gen_sonar_project_properties.py
in tools/sonar
56 3
bouncycastle.bzl
in root
46 -
gerrit_api.bzl
in root
45 -
prolog.bzl
in lib/prolog
34 -
sonar.py
in tools/sonar
34 1
util.py
in tools
31 2
py_binary_path.bzl
in tools
29 -
genrule2.bzl
in tools
27 -
gerrit_api_version.bzl
in root
25 -
java.bzl
in tools
25 -
classpath.bzl
in tools
22 -
gerrit_polymer.bzl
in root
21 -
commons.bzl
in tools
12 -
npm.bzl
in lib/js
10 -
rules_python.bzl
in root
10 -
eslint-chdir.js
in tools/js
7 -
plugin.js
in lib/js/externs
2 -
Files With Most Units (Top 8)
File# lines# units
project.py
in tools/eclipse
160 7
PrologCompiler.java
in lib/prolog/java
66 4
download_file.py
in tools
120 3
gen_sonar_project_properties.py
in tools/sonar
56 3
util.py
in tools
31 2
run_npm_binary.py
in tools/js
63 2
sonar.py
in tools/sonar
34 1
mvn.py
in tools/maven
68 1
Files With Long Lines (Top 3)

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

File# lines# units# long lines
js.bzl
in tools
506 - 2
gerrit_plugin.bzl
in root
76 - 2
gerrit_polymer.bzl
in root
21 - 1