aws / aws-k8s-tester
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
  • 48% duplication:
    • 70,185 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 33,945 duplicated lines
  • 18,079 duplicates
system48% (33,945 lines)
Duplication per Extension
go48% (33,527 lines)
yaml37% (418 lines)
Duplication per Component (primary)
eks50% (15,934 lines)
k8s-tester63% (9,109 lines)
pkg33% (2,807 lines)
ec242% (1,451 lines)
utils86% (1,289 lines)
eksconfig22% (1,262 lines)
cmd36% (959 lines)
client43% (690 lines)
ec2config40% (358 lines)
ssh15% (55 lines)
version100% (31 lines)
images0% (0 lines)

Duplication Between Components (50+ lines)

G eks eks k8s-tester k8s-tester eks--k8s-tester 5307 pkg pkg eks--pkg 146 version version k8s-tester--version 62 ec2 ec2 ec2--eks 3558 utils utils pkg--utils 2568 client client client--pkg 959 client--utils 70 ec2config ec2config ec2config--k8s-tester 154 eksconfig eksconfig ec2config--eksconfig 675 eksconfig--k8s-tester 274

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 18,079 duplicates...
Size#FoldersFilesLinesCode
261 x 2 pkg/aws/ecr
utils/aws/v1/ecr
ecr.go
ecr.go
120:442 (75%)
158:480 (72%)
view
244 x 2 eks/mng
eks/ng
role.go
role.go
254:535 (58%)
263:544 (50%)
view
244 x 2 eks/cluster
eks/mng
role.go
role.go
259:540 (57%)
254:535 (58%)
view
244 x 2 eks/cluster
eks/ng
role.go
role.go
259:540 (57%)
263:544 (50%)
view
237 x 2 ec2
eks/ng
role.go
role.go
278:549 (48%)
273:544 (48%)
view
237 x 2 ec2
eks/cluster
role.go
role.go
278:549 (48%)
269:540 (56%)
view
237 x 2 ec2
eks/mng
role.go
role.go
278:549 (48%)
264:535 (56%)
view
215 x 2 eks/mng
eks/ng
logs.go
logs.go
139:402 (57%)
141:404 (57%)
view
153 x 2 eks/kubernetes-dashboard
k8s-tester/kubernetes-dashboard
dashboard.go
tester.go
20:194 (45%)
168:342 (27%)
view
137 x 2 pkg/randutil
utils/rand
rand.go
rand.go
10:158 (100%)
10:158 (100%)
view
114 x 2 pkg/aws
utils/aws/v1
aws.go
aws.go
81:224 (81%)
81:224 (81%)
view
105 x 2 pkg/httputil
utils/http
downloader.go
http.go
20:164 (100%)
21:165 (72%)
view
101 x 2 eks/helm
k8s-tester/helm
helm.go
helm.go
194:315 (43%)
202:324 (43%)
view
95 x 2 pkg/metrics
utils/latency
metrics.go
latency.go
391:530 (25%)
388:527 (29%)
view
90 x 2 pkg/aws/elb
utils/aws/v1/elb
elb.go
elb.go
109:225 (48%)
29:145 (72%)
view
83 x 2 k8s-tester/configmaps
k8s-tester/secrets
tester.go
tester.go
47:180 (42%)
48:181 (42%)
view
79 x 2 eks/kubernetes-dashboard
k8s-tester/kubernetes-dashboard
dashboard.go
tester.go
196:277 (23%)
344:426 (14%)
view
76 x 2 eks/mng
eks/ng
enis.go
enis.go
34:128 (76%)
31:125 (77%)
view
72 x 2 eks/cni-vpc
eks/cw-agent
cni-vpc.go
cw-agent.go
961:1045 (8%)
694:778 (11%)
view
72 x 2 eks/cw-agent
eks/fluentd
cw-agent.go
fluentd.go
694:778 (11%)
1059:1143 (7%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 112 unit duplicates...
Size#FoldersFilesLinesCode
227 x 4 eks/ng
eks/cluster
eks/mng
ec2
role.go
role.go
role.go
role.go
318:546 
314:542 
309:537 
323:551 
view
117 x 2 pkg/aws/ecr
utils/aws/v1/ecr
ecr.go
ecr.go
131:251 
169:289 
view
101 x 2 pkg/aws/ecr
utils/aws/v1/ecr
ecr.go
ecr.go
254:360 
292:398 
view
94 x 3 k8s-tester/vault
k8s-tester/armory
k8s-tester/falco
tester.go
tester.go
tester.go
184:285 
160:262 
160:262 
view
86 x 2 k8s-tester/csi-ebs
k8s-tester/csi-efs
tester.go
tester.go
196:289 
182:275 
view
82 x 2 eks/configmaps
eks/csrs
configmaps.go
csrs.go
124:212 
138:226 
view
76 x 2 pkg/aws/ecr
utils/aws/v1/ecr
ecr.go
ecr.go
363:443 
401:481 
view
52 x 2 k8s-tester/configmaps
k8s-tester/secrets
tester.go
tester.go
138:197 
139:198 
view
45 x 2 pkg/httputil
utils/http
httputil.go
http.go
12:60 
169:217 
view
42 x 2 eks/irsa
eks/irsa-fargate
irsa.go
irsa-fargate.go
231:275 
237:281 
view
37 x 2 eks/helm
k8s-tester/helm
helm.go
helm.go
309:350 
318:359 
view
37 x 2 k8s-tester/helm
eks/helm
helm.go
helm.go
318:359 
309:350 
view
36 x 2 pkg/logutil
utils/log
zap.go
zap.go
60:100 
60:100 
view
36 x 2 k8s-tester/nlb-hello-world
k8s-tester/php-apache
tester.go
tester.go
361:397 
297:333 
view
33 x 2 pkg/metrics
utils/latency
metrics.go
latency.go
467:500 
464:497 
view
30 x 2 pkg/k8s-client
client
k8s.go
client.go
131:161 
524:554 
view
30 x 2 pkg/httputil
utils/http
downloader.go
http.go
118:149 
119:150 
view
29 x 2 k8s-tester/csi-ebs
k8s-tester/csi-efs
tester.go
tester.go
316:345 
302:331 
view
28 x 2 pkg/httputil
utils/http
downloader.go
http.go
79:109 
80:110 
view
28 x 2 pkg/metrics
utils/latency
metrics.go
latency.go
503:531 
500:528 
view