aws-samples / amazon-emr-on-eks-scale-test-tool
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
  • 12% duplication:
    • 963 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 123 duplicated lines
  • 9 duplicates
system12% (123 lines)
Duplication per Extension
yaml17% (123 lines)
Duplication per Component (primary)
resources17% (123 lines)
scale_test_tool0% (0 lines)
scale_test_tool/tasks0% (0 lines)
scale_test_tool/config0% (0 lines)
scale_test_tool/helper0% (0 lines)
scale_test_tool/locust0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
23 x 2 resources
resources
cluster_in_new_VPC.yaml
cluster_in_new_VPC.yaml
37:60 (20%)
103:126 (20%)
view
23 x 2 resources
resources
cluster_in_new_VPC.yaml
cluster_in_new_VPC.yaml
37:60 (20%)
70:93 (20%)
view
23 x 2 resources
resources
cluster_in_new_VPC.yaml
cluster_in_new_VPC.yaml
70:93 (20%)
103:126 (20%)
view
6 x 2 resources
resources
fluent-bit.yaml
fluent-bit.yaml
90:96 (1%)
185:191 (1%)
view
6 x 2 resources
resources
cluster-autoscaler-autodiscover.yaml
cluster-autoscaler-autodiscover.yaml
78:83 (3%)
113:118 (3%)
view
6 x 2 resources
resources
fluent-bit.yaml
fluent-bit.yaml
90:96 (1%)
196:202 (1%)
view
6 x 2 resources
resources
fluent-bit.yaml
fluent-bit.yaml
77:82 (1%)
149:154 (1%)
view
6 x 2 resources
resources
fluent-bit.yaml
fluent-bit.yaml
185:191 (1%)
196:202 (1%)
view
6 x 2 resources
resources
cluster-autoscaler-autodiscover.yaml
cluster-autoscaler-autodiscover.yaml
104:110 (3%)
122:128 (3%)
view