aws-samples / amazon-eks-drupal
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
  • 73% duplication:
    • 3,453 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,542 duplicated lines
  • 59 duplicates
system73% (2,542 lines)
Duplication per Extension
yaml73% (2,542 lines)
Duplication per Component (primary)
templates73% (2,542 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 59 duplicates...
Size#FoldersFilesLinesCode
309 x 2 templates
templates
kubemanifest.template.yaml
kubemanifestssl.template.yaml
37:351 (80%)
41:355 (78%)
view
141 x 2 templates
templates
existing-vpc.master.template.yaml
master.template.yaml
473:613 (19%)
488:628 (18%)
view
134 x 2 templates
templates
existing-vpc.master.template.yaml
master.template.yaml
214:351 (18%)
235:372 (17%)
view
110 x 2 templates
templates
drupal.template.yaml
existing-vpc.master.template.yaml
41:150 (16%)
205:314 (14%)
view
102 x 2 templates
templates
drupal.template.yaml
master.template.yaml
305:406 (15%)
585:687 (13%)
view
101 x 2 templates
templates
drupal.template.yaml
master.template.yaml
50:150 (15%)
235:335 (13%)
view
60 x 2 templates
templates
existing-vpc.master.template.yaml
master.template.yaml
16:79 (8%)
16:76 (7%)
view
52 x 2 templates
templates
existing-vpc.master.template.yaml
master.template.yaml
369:420 (7%)
427:478 (6%)
view
46 x 2 templates
templates
drupal.template.yaml
existing-vpc.master.template.yaml
360:405 (6%)
615:660 (6%)
view
46 x 2 templates
templates
existing-vpc.master.template.yaml
master.template.yaml
615:660 (6%)
641:686 (5%)
view
45 x 2 templates
templates
drupal.template.yaml
existing-vpc.master.template.yaml
260:304 (6%)
428:472 (6%)
view
44 x 2 templates
templates
drupal.template.yaml
existing-vpc.master.template.yaml
305:348 (6%)
570:613 (5%)
view
37 x 2 templates
templates
kubemanifest.template.yaml
kubemanifestssl.template.yaml
1:37 (9%)
1:37 (9%)
view
31 x 2 templates
templates
drupal.template.yaml
master.template.yaml
151:185 (4%)
339:373 (4%)
view
30 x 2 templates
templates
drupal.template.yaml
existing-vpc.master.template.yaml
3:32 (4%)
165:194 (4%)
view
30 x 2 templates
templates
drupal.template.yaml
existing-vpc.master.template.yaml
151:184 (4%)
318:351 (4%)
view
29 x 2 templates
templates
drupal.template.yaml
master.template.yaml
198:226 (4%)
427:455 (3%)
view
29 x 2 templates
templates
drupal.template.yaml
existing-vpc.master.template.yaml
198:226 (4%)
369:397 (3%)
view
27 x 2 templates
templates
existing-vpc.master.template.yaml
master.template.yaml
687:713 (3%)
718:744 (3%)
view
25 x 2 templates
templates
existing-vpc.master.template.yaml
master.template.yaml
190:214 (3%)
205:229 (3%)
view