kubernetes / community
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 27 files with 5,929 lines of code.
    • 1 very long files (2,517 lines of code)
    • 3 long files (1,950 lines of code)
    • 1 medium size files (459 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (337 lines of code)
    • 20 very small files (666 lines of code)
42% | 32% | 7% | 5% | 11%
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
yaml57% | 15% | 10% | 7% | 8%
py0% | 71% | 0% | 0% | 28%
go0% | 99% | 0% | 0% | <1%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT100% | 0% | 0% | 0% | 0%
sig-contributor-experience/surveys/k8s_survey_analysis0% | 79% | 0% | 0% | 20%
events/elections/20210% | 97% | 0% | 0% | 2%
generator0% | 100% | 0% | 0% | 0%
communication/slack-config0% | 0% | 53% | 39% | 7%
hack0% | 0% | 0% | 0% | 100%
communication/slack-config/sig-release0% | 0% | 0% | 0% | 100%
contributors/devel/sig-scalability0% | 0% | 0% | 0% | 100%
communication/slack-config/sig-docs0% | 0% | 0% | 0% | 100%
communication/slack-config/sig-cloud-provider0% | 0% | 0% | 0% | 100%
communication/slack-config/sig-architecture0% | 0% | 0% | 0% | 100%
communication/slack-config/sig-testing0% | 0% | 0% | 0% | 100%
communication/slack-config/sig-storage0% | 0% | 0% | 0% | 100%
communication/slack-config/sig-security0% | 0% | 0% | 0% | 100%
communication/slack-config/sig-network0% | 0% | 0% | 0% | 100%
Longest Files (Top 27)
File# lines# units
sigs.yaml
in root
2517 -
plot_utils.py
in sig-contributor-experience/surveys/k8s_survey_analysis
710 14
voters.yaml
in events/elections/2021
686 -
app.go
in generator
554 24
channels.yaml
in communication/slack-config
459 -
usergroups.yaml
in communication/slack-config
190 -
users.yaml
in communication/slack-config
147 -
prepare_2018.py
in sig-contributor-experience/surveys/k8s_survey_analysis
98 1
generate-devstats-repo-sql.py
in hack
96 5
hollow-node_simplified_template.yaml
in contributors/devel/sig-scalability
92 -
usergroups.yaml
in communication/slack-config/sig-release
89 -
prepare_2019.py
in sig-contributor-experience/surveys/k8s_survey_analysis
88 3
restrictions.yaml
in communication/slack-config
63 -
docs-channels.yaml
in communication/slack-config/sig-docs
31 -
config.yaml
in communication/slack-config/sig-cloud-provider
21 -
election.yaml
in events/elections/2021
17 -
usergroups.yaml
in communication/slack-config/sig-architecture
13 -
config.yaml
in communication/slack-config/sig-release
10 -
config.yaml
in communication/slack-config/sig-storage
8 -
config.yaml
in communication/slack-config/sig-testing
8 -
config.yaml
in communication/slack-config/sig-architecture
7 -
template.yaml
in communication/slack-config
5 -
config.yaml
in communication/slack-config/sig-security
5 -
config.yaml
in communication/slack-config/sig-network
5 -
usergroups.yaml
in communication/slack-config/sig-testing
5 -
tools.go
in hack
4 -
__init__.py
in sig-contributor-experience/surveys/k8s_survey_analysis
1 -
Files With Most Units (Top 5)
File# lines# units
app.go
in generator
554 24
plot_utils.py
in sig-contributor-experience/surveys/k8s_survey_analysis
710 14
generate-devstats-repo-sql.py
in hack
96 5
prepare_2019.py
in sig-contributor-experience/surveys/k8s_survey_analysis
88 3
prepare_2018.py
in sig-contributor-experience/surveys/k8s_survey_analysis
98 1
Files With Long Lines (Top 6)

There are 6 files with lines longer than 120 characters. In total, there are 61 long lines.

File# lines# units# long lines
sigs.yaml
in root
2517 - 25
prepare_2018.py
in sig-contributor-experience/surveys/k8s_survey_analysis
98 1 18
prepare_2019.py
in sig-contributor-experience/surveys/k8s_survey_analysis
88 3 9
app.go
in generator
554 24 6
election.yaml
in events/elections/2021
17 - 2
generate-devstats-repo-sql.py
in hack
96 5 1