aws-samples / aws-eks-helm-release-management
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
  • 28% duplication:
    • 1,713 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 482 duplicated lines
  • 20 duplicates
system28% (482 lines)
Duplication per Extension
yaml37% (440 lines)
tpl36% (42 lines)
Duplication per Component (primary)
application/helm-charts/aws-load-balancer-controller/crds76% (343 lines)
application/helm-charts/aws-load-balancer-controller/templates18% (104 lines)
application/flask-kubernetes-helm/templates24% (35 lines)
cdk-resources/lib0% (0 lines)
cdk-resources/lib/buildSpec0% (0 lines)
cdk-resources0% (0 lines)
application/flask-app/templates0% (0 lines)
application/flask-app0% (0 lines)
application/flask-kubernetes-helm0% (0 lines)
application/helm-charts/aws-load-balancer-controller0% (0 lines)
application/helm-charts/aws-load-balancer-controller/ci0% (0 lines)
aws-prerequisite/lib0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 20 duplicates...
Size#FoldersFilesLinesCode
40 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
236:275 (8%)
403:442 (8%)
view
29 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
187:215 (6%)
323:351 (6%)
view
28 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
66:93 (6%)
376:403 (6%)
view
21 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
216:236 (4%)
353:373 (4%)
view
21 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
144:164 (4%)
279:299 (4%)
view
14 x 2 application/flask-kubernetes-helm/templates
application/helm-charts/...er-controller/templates
tpl
_helpers.tpl
_helpers.tpl
15:29 (46%)
15:29 (16%)
view
14 x 2 application/helm-charts/...er-controller/templates
application/helm-charts/...er-controller/templates
webhook.yaml
webhook.yaml
9:22 (8%)
78:91 (8%)
view
13 x 2 application/helm-charts/...er-controller/templates
application/helm-charts/...er-controller/templates
webhook.yaml
webhook.yaml
58:70 (7%)
95:107 (7%)
view
10 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
172:181 (2%)
307:316 (2%)
view
10 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
37:46 (2%)
304:313 (2%)
view
7 x 2 application/flask-kubernetes-helm/templates
application/flask-kubernetes-helm/templates
deployment.yaml
service.yaml
3:9 (13%)
3:9 (30%)
view
7 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
40:46 (1%)
172:178 (1%)
view
7 x 2 application/flask-kubernetes-helm/templates
application/helm-charts/...er-controller/templates
tpl
_helpers.tpl
_helpers.tpl
6:13 (23%)
6:13 (8%)
view
7 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
29:35 (1%)
296:302 (1%)
view
6 x 2 application/helm-charts/...er-controller/templates
application/helm-charts/...er-controller/templates
webhook.yaml
webhook.yaml
2:7 (3%)
71:76 (3%)
view
6 x 2 application/helm-charts/...er-controller/templates
application/helm-charts/...er-controller/templates
webhook.yaml
webhook.yaml
63:68 (3%)
122:127 (3%)
view
6 x 2 application/helm-charts/...er-controller/templates
application/helm-charts/...er-controller/templates
webhook.yaml
webhook.yaml
49:54 (3%)
107:112 (3%)
view
6 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
1:6 (1%)
128:133 (1%)
view
6 x 2 application/helm-charts/...er-controller/templates
application/helm-charts/...er-controller/templates
webhook.yaml
webhook.yaml
100:105 (3%)
122:127 (3%)
view
6 x 2 application/helm-charts/...alancer-controller/crds
application/helm-charts/...alancer-controller/crds
crds.yaml
crds.yaml
121:126 (1%)
446:451 (1%)
view