aws-samples / aws-efa-eks
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
  • 81% duplication:
    • 749 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 611 duplicated lines
  • 13 duplicates
system81% (611 lines)
Duplication per Extension
yaml86% (581 lines)
yml37% (30 lines)
Duplication per Component (primary)
cloudformation86% (581 lines)
manifest37% (30 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
197 x 2 cloudformation
cloudformation
efa-p4d-managed-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
51:271 (61%)
69:288 (56%)
view
24 x 2 cloudformation
cloudformation
efa-p4d-managed-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
17:44 (7%)
20:47 (6%)
view
19 x 2 cloudformation
cloudformation
efa-p4d-managed-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
313:337 (5%)
331:355 (5%)
view
15 x 2 manifest
manifest
efa-k8s-device-plugin.yml
efa-k8s-device-plugin.yml
40:54 (18%)
57:71 (18%)
view
14 x 2 cloudformation
cloudformation
efa-p4d-managed-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
1:16 (4%)
1:16 (3%)
view
8 x 2 cloudformation
cloudformation
efa-p4d-managed-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
284:291 (2%)
298:305 (2%)
view
7 x 2 cloudformation
cloudformation
efa-p4d-managed-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
299:305 (2%)
315:321 (1%)
view
7 x 2 cloudformation
cloudformation
efa-p4d-managed-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
306:312 (2%)
323:329 (1%)
view
7 x 2 cloudformation
cloudformation
efa-p4d-managed-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
292:298 (2%)
307:313 (1%)
view
6 x 2 cloudformation
cloudformation
efa-p4d-selfmanaged-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
302:307 (1%)
318:323 (1%)
view
6 x 2 cloudformation
cloudformation
efa-p4d-selfmanaged-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
302:307 (1%)
310:315 (1%)
view
6 x 2 cloudformation
cloudformation
efa-p4d-managed-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
273:278 (1%)
292:297 (1%)
view
6 x 2 cloudformation
cloudformation
efa-p4d-selfmanaged-nodegroup.yaml
efa-p4d-selfmanaged-nodegroup.yaml
310:315 (1%)
318:323 (1%)
view