kubernetes / dashboard
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 874 files with 46,057 lines of code.
    • 2 very long files (3,522 lines of code)
    • 1 long files (659 lines of code)
    • 25 medium size files (6,791 lines of codeclsfd_ftr_w_mp_ins)
    • 75 small files (10,150 lines of code)
    • 771 very small files (24,935 lines of code)
7% | 1% | 14% | 22% | 54%
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
go13% | 3% | 13% | 22% | 46%
ts7% | 0% | 12% | 16% | 64%
html0% | 0% | 12% | 36% | 50%
yaml0% | 0% | 31% | 13% | 55%
scss0% | 0% | 39% | 0% | 60%
tpl0% | 0% | 0% | 0% | 100%
mjs0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/app/backend13% | 3% | 13% | 22% | 46%
src/app/frontend4% | 0% | 14% | 22% | 59%
aio/deploy0% | 0% | 100% | 0% | 0%
aio/deploy/helm-chart0% | 0% | 0% | 31% | 68%
aio/deploy/head0% | 0% | 0% | 0% | 100%
aio/deploy/recommended0% | 0% | 0% | 0% | 100%
aio/deploy/alternative0% | 0% | 0% | 0% | 100%
cypress/pages0% | 0% | 0% | 0% | 100%
aio/scripts0% | 0% | 0% | 0% | 100%
cypress/plugins0% | 0% | 0% | 0% | 100%
cypress/fixtures0% | 0% | 0% | 0% | 100%
aio0% | 0% | 0% | 0% | 100%
cypress/support0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
apihandler.go
in src/app/backend/handler
2445 112
root.api.ts
in src/app/frontend/typings
1077 -
resourcechannels.go
in src/app/backend/resource/common
659 31
volume.api.ts
in src/app/frontend/typings
464 58
list.ts
in src/app/frontend/common/resources
405 21
template.html
in src/app/frontend/resource/cluster/persistentvolume/detail/source
377 -
manager.go
in src/app/backend/client
366 33
detail.go
in src/app/backend/resource/pod
353 10
index.scss
in src/app/frontend
343 -
template.html
in src/app/frontend/create/from/form
336 -
component.ts
in src/app/frontend/logs
258 11
recommended.yaml
in aio/deploy
255 -
head.yaml
in aio/deploy
251 -
_theming.scss
in src/app/frontend
250 -
deploy.go
in src/app/backend/resource/deployment
244 7
template.html
in src/app/frontend/common/components/container
240 -
detail.go
in src/app/backend/resource/node
240 8
alternative.yaml
in aio/deploy
239 -
component.ts
in src/app/frontend/create/from/form
239 14
template.html
in src/app/frontend/resource/workloads/deployment/detail
236 -
controller.go
in src/app/backend/resource/controller
228 20
terminal.go
in src/app/backend/handler
217 13
component.ts
in src/app/frontend/common/components/namespace
215 10
component.ts
in src/app/frontend/shell
211 7
dashboard.go
in src/app/backend
211 6
common.go
in src/app/backend/resource/event
208 12
common.go
in src/app/backend/resource/pod
203 10
client.go
in src/app/backend/integration/metric/sidecar
202 11
dataselect.go
in src/app/backend/resource/dataselect
193 14
types.go
in src/app/backend/integration/metric/api
193 12
module.ts
in src/app/frontend/common/components
187 -
template.html
in src/app/frontend/chrome/nav
184 -
client.go
in src/app/backend/integration/metric/heapster
182 11
component.ts
in src/app/frontend/login
179 5
types.go
in src/app/backend/api
175 6
routing.ts
in src/app/frontend/chrome
174 -
template.html
in src/app/frontend/common/components/resourcelist/pod
173 -
deployment.yaml
in aio/deploy/helm-chart/kubernetes-dashboard/templates
172 -
template.html
in src/app/frontend/common/components/securitycontext
168 -
component.ts
in src/app/frontend/create/from/form/portmappings
166 8
secret.go
in src/app/backend/sync
163 14
template.html
in src/app/frontend/common/components/workloadstatus
161 -
component.ts
in src/app/frontend/settings/global/namespace
161 8
template.html
in src/app/frontend/resource/cluster/node/detail
159 -
component.ts
in src/app/frontend/common/components/graph
157 3
verber.go
in src/app/backend/client
157 7
logs.go
in src/app/backend/resource/logs
156 4
template.html
in src/app/frontend/common/components/resourcelist/event
148 -
manager.go
in src/app/backend/settings
148 8
component.ts
in src/app/frontend/settings/global
147 7
Files With Most Units (Top 20)
File# lines# units
apihandler.go
in src/app/backend/handler
2445 112
volume.api.ts
in src/app/frontend/typings
464 58
manager.go
in src/app/backend/client
366 33
resourcechannels.go
in src/app/backend/resource/common
659 31
builder.go
in src/app/backend/args
105 25
holder.go
in src/app/backend/args
110 24
list.ts
in src/app/frontend/common/resources
405 21
controller.go
in src/app/backend/resource/controller
228 20
component.ts
in src/app/frontend/create/from/form
239 14
dataselect.go
in src/app/backend/resource/dataselect
193 14
secret.go
in src/app/backend/sync
163 14
pod.go
in src/app/backend/resource/common
138 13
terminal.go
in src/app/backend/handler
217 13
common.go
in src/app/backend/resource/event
208 12
filter.go
in src/app/backend/handler
140 12
types.go
in src/app/backend/integration/metric/api
193 12
component.ts
in src/app/frontend/logs
258 11
handler.go
in src/app/backend/errors
95 11
errors.go
in src/app/backend/errors
132 11
creator.go
in src/app/backend/cert/ecdsa
128 11
Files With Long Lines (Top 20)

There are 90 files with lines longer than 120 characters. In total, there are 225 long lines.

File# lines# units# long lines
dashboard.go
in src/app/backend
211 6 24
apihandler.go
in src/app/backend/handler
2445 112 19
template.html
in src/app/frontend/create/from/form
336 - 10
objects.go
in src/app/backend/resource/customresourcedefinition/v1
92 3 6
template.html
in src/app/frontend/login
121 - 5
verber.go
in src/app/backend/client
157 7 5
detail.go
in src/app/backend/resource/replicationcontroller
55 3 5
common.go
in src/app/backend/resource/customresourcedefinition
113 7 5
factory.go
in src/app/backend/plugin/client/informers/externalversions
117 10 5
plugin.go
in src/app/backend/plugin/client/informers/externalversions/apis/v1alpha1
55 5 5
fake_plugin.go
in src/app/backend/plugin/client/clientset/versioned/typed/apis/v1alpha1/fake
81 8 5
template.html
in src/app/frontend/common/components/resourcelist/node
141 - 4
list.go
in src/app/backend/resource/customresourcedefinition/v1
75 6 4
detail.go
in src/app/backend/resource/customresourcedefinition/v1
58 3 4
plugin.go
in src/app/backend/plugin/client/clientset/versioned/typed/apis/v1alpha1
133 9 4
template.html
in src/app/frontend/common/components/ingressrulelist
103 - 3
list.go
in src/app/backend/resource/configmap
57 4 3
list.go
in src/app/backend/resource/clusterrolebinding
56 4 3
list.go
in src/app/backend/resource/rolebinding
56 4 3
resourcechannels.go
in src/app/backend/resource/common
659 31 3