aws-quickstart / quickstart-mongodb-atlas
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
  • 67% duplication:
    • 1,731 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,174 duplicated lines
  • 70 duplicates
system67% (1,174 lines)
Duplication per Extension
yaml68% (1,174 lines)
Duplication per Component (primary)
templates68% (1,174 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 70 duplicates...
Size#FoldersFilesLinesCode
74 x 2 templates
templates
mongodb-atlas-peering.template.yaml
mongodb-atlas.template.yaml
65:138 (27%)
56:129 (31%)
view
69 x 2 templates
templates
mongodb-atlas-main.template.yaml
mongodb-atlas-peering-existingvpc.tem...
78:146 (29%)
86:154 (27%)
view
50 x 2 templates
templates
mongodb-atlas-peering.template.yaml
mongodb-atlas.template.yaml
216:265 (18%)
189:238 (21%)
view
40 x 2 templates
templates
mongodb-atlas-main.template.yaml
mongodb-atlas-peering-existingvpc.tem...
154:193 (17%)
168:207 (15%)
view
39 x 2 templates
templates
mongodb-atlas-peering.template.yaml
mongodb-atlas.template.yaml
145:186 (14%)
130:171 (16%)
view
36 x 2 templates
templates
mongodb-atlas-main.template.yaml
mongodb-atlas-peering-newvpc.template...
78:113 (15%)
135:170 (11%)
view
36 x 2 templates
templates
mongodb-atlas-peering-existingvpc.tem...
mongodb-atlas-peering-newvpc.template...
86:121 (14%)
135:170 (11%)
view
32 x 2 templates
templates
mongodb-atlas-peering.template.yaml
mongodb-atlas.template.yaml
32:63 (11%)
23:54 (13%)
view
29 x 2 templates
templates
mongodb-atlas-peering-existingvpc.tem...
mongodb-atlas.template.yaml
93:121 (11%)
64:92 (12%)
view
29 x 2 templates
templates
mongodb-atlas-peering-newvpc.template...
mongodb-atlas.template.yaml
142:170 (9%)
64:92 (12%)
view
29 x 2 templates
templates
mongodb-atlas-main.template.yaml
mongodb-atlas.template.yaml
85:113 (12%)
64:92 (12%)
view
29 x 2 templates
templates
mongodb-atlas-peering-newvpc.template...
mongodb-atlas-peering.template.yaml
142:170 (9%)
73:101 (10%)
view
29 x 2 templates
templates
mongodb-atlas-main.template.yaml
mongodb-atlas-peering.template.yaml
85:113 (12%)
73:101 (10%)
view
29 x 2 templates
templates
mongodb-atlas-peering-existingvpc.tem...
mongodb-atlas-peering.template.yaml
93:121 (11%)
73:101 (10%)
view
27 x 2 templates
templates
mongodb-atlas-peering-existingvpc.tem...
mongodb-atlas-peering-newvpc.template...
43:69 (10%)
58:84 (8%)
view
26 x 2 templates
templates
mongodb-atlas-peering-existingvpc.tem...
mongodb-atlas-peering-newvpc.template...
168:193 (10%)
214:239 (8%)
view
26 x 2 templates
templates
mongodb-atlas-main.template.yaml
mongodb-atlas-peering-newvpc.template...
154:179 (11%)
214:239 (8%)
view
24 x 2 templates
templates
mongodb-atlas-main.template.yaml
mongodb-atlas.template.yaml
115:138 (10%)
94:117 (10%)
view
24 x 2 templates
templates
mongodb-atlas-main.template.yaml
mongodb-atlas-peering-newvpc.template...
115:138 (10%)
172:195 (7%)
view
24 x 2 templates
templates
mongodb-atlas-peering-existingvpc.tem...
mongodb-atlas.template.yaml
123:146 (9%)
94:117 (10%)
view