aws-quickstart / quickstart-mongodb
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
  • 70% duplication:
    • 1,917 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,348 duplicated lines
  • 80 duplicates
system70% (1,348 lines)
Duplication per Extension
yaml72% (1,348 lines)
Duplication per Component (primary)
templates73% (1,348 lines)
ct/custom-control-tower-configuration0% (0 lines)
ci0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 80 duplicates...
Size#FoldersFilesLinesCode
259 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb.template.yaml
252:510 (50%)
249:507 (51%)
view
248 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb.template.yaml
1:248 (48%)
1:248 (48%)
view
71 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb-node.template.yaml
158:228 (13%)
21:91 (19%)
view
71 x 2 templates
templates
mongodb-node.template.yaml
mongodb.template.yaml
21:91 (19%)
158:228 (14%)
view
64 x 2 templates
templates
mongodb-new-vpc.template.yaml
mongodb-node.template.yaml
230:293 (13%)
25:88 (17%)
view
64 x 2 templates
templates
mongodb-new-vpc.template.yaml
mongodb.template.yaml
230:293 (13%)
162:225 (12%)
view
64 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb-new-vpc.template.yaml
162:225 (12%)
230:293 (13%)
view
33 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb-node.template.yaml
77:109 (6%)
127:159 (9%)
view
33 x 2 templates
templates
mongodb-node.template.yaml
mongodb.template.yaml
127:159 (9%)
77:109 (6%)
view
24 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb.template.yaml
453:476 (4%)
402:425 (4%)
view
24 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb-node.template.yaml
114:137 (4%)
163:186 (6%)
view
24 x 2 templates
templates
mongodb.template.yaml
mongodb.template.yaml
402:425 (4%)
450:473 (4%)
view
24 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb.template.yaml
405:428 (4%)
450:473 (4%)
view
24 x 2 templates
templates
mongodb-node.template.yaml
mongodb.template.yaml
163:186 (6%)
114:137 (4%)
view
24 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb-existing-vpc.template.yaml
405:428 (4%)
453:476 (4%)
view
23 x 2 templates
templates
mongodb.template.yaml
mongodb.template.yaml
356:378 (4%)
403:425 (4%)
view
23 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb.template.yaml
406:428 (4%)
356:378 (4%)
view
23 x 2 templates
templates
mongodb.template.yaml
mongodb.template.yaml
356:378 (4%)
451:473 (4%)
view
23 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb.template.yaml
359:381 (4%)
403:425 (4%)
view
23 x 2 templates
templates
mongodb-existing-vpc.template.yaml
mongodb.template.yaml
454:476 (4%)
356:378 (4%)
view