aws-samples / eks-manage-node-groups-placement-group
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
  • 36% duplication:
    • 477 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 176 duplicated lines
  • 19 duplicates
system36% (176 lines)
Duplication per Extension
tf34% (102 lines)
ts40% (40 lines)
yml45% (34 lines)
Duplication per Component (primary)
terraform34% (102 lines)
cdk/lib40% (40 lines)
yaml45% (34 lines)
cdk0% (0 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
17 x 2 terraform
terraform
eks-cluster.tf
kubernetes.tf
1:17 (22%)
1:17 (77%)
view
17 x 2 terraform
terraform
versions.tf
vpc.tf
1:17 (40%)
1:17 (27%)
view
17 x 2 terraform
terraform
launch_template.tf
outputs.tf
1:17 (30%)
1:17 (41%)
view
17 x 2 terraform
terraform
kubernetes.tf
launch_template.tf
1:17 (77%)
1:17 (30%)
view
17 x 2 terraform
terraform
eks-cluster.tf
launch_template.tf
1:17 (22%)
1:17 (30%)
view
17 x 2 terraform
terraform
eks-cluster.tf
outputs.tf
1:17 (22%)
1:17 (41%)
view
17 x 2 terraform
terraform
launch_template.tf
vpc.tf
1:17 (30%)
1:17 (27%)
view
17 x 2 terraform
terraform
launch_template.tf
versions.tf
1:17 (30%)
1:17 (40%)
view
17 x 2 terraform
terraform
kubernetes.tf
vpc.tf
1:17 (77%)
1:17 (27%)
view
17 x 2 terraform
terraform
outputs.tf
versions.tf
1:17 (41%)
1:17 (40%)
view
17 x 2 terraform
terraform
kubernetes.tf
versions.tf
1:17 (77%)
1:17 (40%)
view
17 x 2 terraform
terraform
eks-cluster.tf
vpc.tf
1:17 (22%)
1:17 (27%)
view
17 x 2 terraform
terraform
eks-cluster.tf
versions.tf
1:17 (22%)
1:17 (40%)
view
17 x 2 terraform
terraform
outputs.tf
vpc.tf
1:17 (41%)
1:17 (27%)
view
17 x 2 terraform
terraform
kubernetes.tf
outputs.tf
1:17 (77%)
1:17 (41%)
view
12 x 2 cdk/lib
cdk/lib
cluster-logging.ts
cluster-logging.ts
31:42 (21%)
54:65 (21%)
view
9 x 2 yaml
yaml
deployment.yml
deployment.yml
29:37 (12%)
66:74 (12%)
view
8 x 2 yaml
yaml
deployment.yml
deployment.yml
20:27 (10%)
57:64 (10%)
view
8 x 2 cdk/lib
cdk/lib
cluster-logging.ts
cluster-logging.ts
21:28 (14%)
44:51 (14%)
view