kubernetes / dashboard
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 16% duplication:
    • 34,781 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 5,790 duplicated lines
  • 2,522 duplicates
system16% (5,790 lines)
Duplication per Extension
yaml69% (1,673 lines)
html23% (1,667 lines)
go12% (1,555 lines)
ts7% (795 lines)
scss3% (46 lines)
tpl30% (30 lines)
mjs45% (24 lines)
Duplication per Component (primary)
src/app/frontend12% (2,508 lines)
src/app/backend12% (1,555 lines)
aio/deploy98% (731 lines)
aio/deploy/helm-chart26% (263 lines)
aio/deploy/recommended98% (243 lines)
aio/deploy/head95% (240 lines)
aio/deploy/alternative97% (226 lines)
aio/scripts45% (24 lines)
cypress/support0% (0 lines)
cypress/plugins0% (0 lines)
cypress/fixtures0% (0 lines)
cypress/pages0% (0 lines)
aio0% (0 lines)

Duplication Between Components (50+ lines)

G aio/deploy aio/deploy aio/deploy/recommended aio/deploy/recommended aio/deploy--aio/deploy/recommended 768 aio/deploy/alternative aio/deploy/alternative aio/deploy--aio/deploy/alternative 749 aio/deploy/head aio/deploy/head aio/deploy--aio/deploy/head 603 aio/deploy/alternative--aio/deploy/recommended 421 aio/deploy/alternative--aio/deploy/head 125 aio/deploy/helm-chart aio/deploy/helm-chart aio/deploy/alternative--aio/deploy/helm-chart 50 aio/deploy/head--aio/deploy/recommended 167 aio/deploy/helm-chart--aio/deploy 112 aio/deploy/helm-chart--aio/deploy/recommended 68

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 2,522 duplicates...
Size#FoldersFilesLinesCode
118 x 2 aio/deploy
aio/deploy
alternative.yaml
recommended.yaml
46:182 (49%)
57:193 (46%)
view
74 x 2 aio/deploy
aio/deploy
alternative.yaml
recommended.yaml
209:288 (30%)
227:306 (29%)
view
64 x 2 aio/deploy
aio/deploy/head
head.yaml
05_dashboard-rbac.yaml
82:155 (25%)
15:88 (100%)
view
64 x 2 aio/deploy
aio/deploy/recommended
recommended.yaml
05_dashboard-rbac.yaml
93:166 (25%)
15:88 (100%)
view
64 x 2 aio/deploy/alternative
aio/deploy/recommended
05_dashboard-rbac.yaml
05_dashboard-rbac.yaml
15:88 (100%)
15:88 (100%)
view
64 x 2 aio/deploy
aio/deploy/recommended
alternative.yaml
05_dashboard-rbac.yaml
82:155 (26%)
15:88 (100%)
view
64 x 2 aio/deploy
aio/deploy/alternative
alternative.yaml
05_dashboard-rbac.yaml
82:155 (26%)
15:88 (100%)
view
64 x 2 aio/deploy/alternative
aio/deploy
05_dashboard-rbac.yaml
recommended.yaml
15:88 (100%)
93:166 (25%)
view
60 x 2 aio/deploy
aio/deploy/recommended
recommended.yaml
06_dashboard-deployment.yaml
170:235 (23%)
15:80 (100%)
view
56 x 2 src/app/frontend/common/...ourcelist/networkpolicy
src/app/frontend/common/...urcelist/serviceaccount
template.html
template.html
22:100 (91%)
22:100 (91%)
view
51 x 2 aio/deploy
aio/deploy/recommended
recommended.yaml
08_scraper-deployment.yaml
255:306 (20%)
15:66 (100%)
view
51 x 2 aio/deploy
aio/deploy/recommended
alternative.yaml
08_scraper-deployment.yaml
237:288 (21%)
15:66 (100%)
view
51 x 2 aio/deploy
aio/deploy/alternative
alternative.yaml
08_scraper-deployment.yaml
237:288 (21%)
15:66 (100%)
view
51 x 2 aio/deploy/alternative
aio/deploy/recommended
08_scraper-deployment.yaml
08_scraper-deployment.yaml
15:66 (100%)
15:66 (100%)
view
51 x 2 aio/deploy/alternative
aio/deploy
08_scraper-deployment.yaml
recommended.yaml
15:66 (100%)
255:306 (20%)
view
38 x 2 src/app/frontend/overview
src/app/frontend/search
template.html
template.html
26:67 (55%)
22:63 (57%)
view
34 x 2 aio/deploy
aio/deploy/head
head.yaml
08_scraper-deployment.yaml
249:282 (13%)
15:48 (66%)
view
29 x 2 aio/deploy
aio/deploy/alternative
alternative.yaml
06_dashboard-deployment.yaml
159:187 (12%)
15:43 (54%)
view
28 x 2 aio/deploy
aio/deploy/recommended
recommended.yaml
03_dashboard-secret.yaml
48:79 (10%)
15:46 (100%)
view
24 x 2 aio/deploy
aio/deploy/head
head.yaml
06_dashboard-deployment.yaml
159:182 (9%)
15:38 (32%)
view
Duplicated Units
The list of top 12 duplicated units.
See data for all 12 unit duplicates...
Size#FoldersFilesLinesCode
24 x 2 src/app/backend/integration/metric/heapster
src/app/backend/integration/metric/sidecar
selector.go
selector.go
74:98 
74:98 
view
18 x 2 src/app/backend/resource/replicationcontroller
src/app/backend/resource/statefulset
common.go
common.go
132:153 
70:91 
view
15 x 2 src/app/backend/handler
src/app/backend/handler
apihandler.go
apihandler.go
906:922 
1653:1669 
view
11 x 23 src/app/backend/resource/serviceaccount
src/app/backend/resource/replicationcontroller
src/app/backend/resource/configmap
src/app/backend/resource/cronjob
src/app/backend/resource/clusterrole
src/app/backend/resource/clusterrolebinding
src/app/backend/resource/networkpolicy
src/app/backend/resource/rolebinding
src/app/backend/resource...omresourcedefinition/v1
src/app/backend/resource/replicaset
...
common.go
common.go
common.go
common.go
common.go
common.go
common.go
common.go
common.go
common.go
...
24:36 
94:106 
26:38 
29:41 
25:37 
25:37 
24:36 
25:37 
61:73 
31:43 
...
view
10 x 2 src/app/backend/integration/metric/heapster
src/app/backend/integration/metric/sidecar
common.go
common.go
65:77 
64:76 
view
8 x 2 src/app/backend/integration/metric/heapster
src/app/backend/integration/metric/sidecar
client.go
client.go
60:68 
58:66 
view
7 x 2 src/app/frontend/common/components/uploadfile
src/app/frontend/common/services/create
component.ts
service.ts
57:64 
132:139 
view
7 x 2 src/app/backend/resource/dataselect
src/app/backend/resource/dataselect
stdcomparabletypes.go
stdcomparabletypes.go
83:90 
92:99 
view
7 x 2 src/app/backend/resource/controller
src/app/backend/resource/controller
controller.go
controller.go
200:207 
235:242 
view
6 x 2 src/app/backend/resource/serviceaccount
src/app/backend/resource/networkpolicy
common.go
common.go
38:44 
38:44 
view
6 x 2 src/app/backend/resource/clusterrole
src/app/backend/resource/role
common.go
common.go
39:45 
39:45 
view
6 x 2 src/app/backend/integration/metric/heapster
src/app/backend/integration/metric/sidecar
client.go
client.go
225:231 
252:258 
view