kubernetes / website
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 306 files with 29,949 lines of code.
    • 2 very long files (3,196 lines of code)
    • 4 long files (2,679 lines of code)
    • 20 medium size files (6,830 lines of codeclsfd_ftr_w_mp_ins)
    • 64 small files (9,544 lines of code)
    • 216 very small files (7,700 lines of code)
10% | 8% | 22% | 31% | 25%
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
js99% | 0% | 0% | 0% | <1%
scss0% | 75% | 0% | 15% | 9%
yaml0% | 40% | 32% | 8% | 18%
css0% | 8% | 72% | 17% | 1%
toml0% | 0% | 7% | 86% | 6%
py0% | 0% | 38% | 40% | 20%
html0% | 0% | 0% | 30% | 69%
yml0% | 0% | 0% | 0% | 100%
webmanifest0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
content27% | 0% | 0% | 31% | 41%
assets0% | 74% | 0% | 15% | 9%
api-ref-assets0% | 72% | 27% | 0% | 0%
static0% | 9% | 81% | 7% | 1%
ROOT0% | 0% | 93% | 0% | 6%
scripts0% | 0% | 51% | 21% | 27%
data0% | 0% | 0% | 85% | 14%
i18n0% | 0% | 0% | 93% | 6%
update-imported-docs0% | 0% | 0% | 77% | 22%
layouts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
partner-script.js
in content/ja/includes
1598 -
partner-script.js
in content/fr/includes
1598 -
_base.scss
in assets/scss
700 -
fields.yaml
in api-ref-assets/config
670 -
_custom.scss
in assets/scss
659 -
newcommunity.css
in static/css
650 -
config.toml
in root
406 -
style_crowdfire.css
in static/css
365 -
style_blablacar.css
in static/css
365 -
style_amadeus.css
in static/css
364 -
style_huawei.css
in static/css
363 -
style_haufegroup.css
in static/css
363 -
style_zalando.css
in static/css
360 -
style_blackrock.css
in static/css
360 -
style_case_studies.css
in static/css
354 -
style_peardeck.css
in static/css
353 -
style_buffer.css
in static/css
353 -
style_golfnow.css
in static/css
351 -
case-studies-gradient.css
in static/css
351 -
style_ancestry.css
in static/css
349 -
style_wink.css
in static/css
349 -
style_box.css
in static/css
345 -
gridpage.css
in static/css
277 -
labels.yaml
in root
277 -
linkchecker.py
in scripts
270 12
toc.yaml
in api-ref-assets/config
255 -
uk.toml
in data/i18n/uk
190 -
uk.toml
in i18n
190 -
_index.html
in content/en/community
185 -
_index.html
in content/ko/community
184 -
_index.html
in content/de/community
184 -
en.toml
in data/i18n/en
183 -
en.toml
in i18n
183 -
training.css
in static/css
181 -
style_apiref.css
in static/css
176 -
update-imported-docs.py
in update-imported-docs
176 5
partner-style.css
in content/zh/includes
166 -
partner-style.css
in content/en/includes
166 -
partner-style.css
in content/ja/includes
166 -
partner-style.css
in content/de/includes
166 -
partner-style.css
in content/fr/includes
166 -
_index.html
in content/it/community
165 -
_index.html
in content/fr/community
165 -
_tablet.scss
in assets/scss
164 -
_index.html
in content/vi/community
164 -
_index.html
in content/ru/community
164 -
_index.html
in content/ja/community
164 -
_index.html
in content/id/community
164 -
pt-br.toml
in data/i18n/pt
160 -
pl.toml
in data/i18n/pl
160 -
Files With Most Units (Top 6)
File# lines# units
linkchecker.py
in scripts
270 12
diff_l10n_branches.py
in scripts
111 5
upstream_changes.py
in scripts
51 5
update-imported-docs.py
in update-imported-docs
176 5
check-ctrlcode.py
in scripts
43 3
find_pr.py
in scripts
51 1
Files With Long Lines (Top 20)

There are 179 files with lines longer than 120 characters. In total, there are 2184 long lines.

File# lines# units# long lines
partner-script.js
in content/fr/includes
1598 - 160
partner-script.js
in content/ja/includes
1598 - 151
index.html
in content/zh/case-studies/box
92 - 31
index.html
in content/it/case-studies/box
92 - 31
index.html
in content/zh/case-studies/haufegroup
89 - 30
index.html
in content/zh/case-studies/golfnow
104 - 29
index.html
in content/en/case-studies/box
66 - 29
index.html
in content/ko/case-studies/box
66 - 29
index.html
in content/zh/case-studies/crowdfire
84 - 28
index.html
in content/en/case-studies/golfnow
56 - 28
index.html
in content/en/case-studies/peardeck
55 - 28
index.html
in content/zh/case-studies/amadeus
95 - 27
index.html
in content/en/case-studies/crowdfire
54 - 26
index.html
in content/zh/case-studies/bose
86 - 25
index.html
in content/en/case-studies/naic
59 - 25
index.html
in content/en/case-studies/amadeus
54 - 25
index.html
in content/en/case-studies/buffer
54 - 25
index.html
in content/zh/case-studies/city-of-montreal
86 - 24
index.html
in content/en/case-studies/pinterest
60 - 24
index.html
in content/zh/case-studies/chinaunicom
82 - 23