aws-quickstart / quickstart-microsoft-dedicated-host
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
  • 55% duplication:
    • 1,639 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 915 duplicated lines
  • 46 duplicates
system55% (915 lines)
Duplication per Extension
yaml63% (915 lines)
Duplication per Component (primary)
templates63% (915 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 46 duplicates...
Size#FoldersFilesLinesCode
81 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
23:103 (18%)
23:103 (17%)
view
79 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
272:350 (17%)
280:358 (16%)
view
46 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
207:252 (10%)
234:279 (9%)
view
36 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
377:412 (8%)
403:438 (7%)
view
34 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
172:205 (7%)
199:232 (7%)
view
28 x 2 templates
templates
dedicatedhost.template.yaml
entrypoint-new-vpc.template.yaml
100:127 (12%)
200:227 (5%)
view
28 x 2 templates
templates
dedicatedhost.template.yaml
entrypoint-existing-vpc.template.yaml
100:127 (12%)
173:200 (6%)
view
24 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
149:172 (5%)
150:173 (5%)
view
23 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
126:148 (5%)
124:146 (4%)
view
16 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
361:376 (3%)
369:384 (3%)
view
16 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
418:433 (3%)
444:459 (3%)
view
13 x 2 templates
templates
dedicatedhost.template.yaml
entrypoint-existing-vpc.template.yaml
134:146 (5%)
227:239 (2%)
view
13 x 2 templates
templates
dedicatedhost.template.yaml
entrypoint-new-vpc.template.yaml
134:146 (5%)
254:266 (2%)
view
12 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
104:115 (2%)
112:123 (2%)
view
11 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
licensemanager.template.yaml
386:396 (2%)
283:293 (3%)
view
11 x 2 templates
templates
entrypoint-new-vpc.template.yaml
licensemanager.template.yaml
412:422 (2%)
283:293 (3%)
view
9 x 2 templates
templates
dedicatedhost.template.yaml
entrypoint-existing-vpc.template.yaml
29:37 (3%)
59:67 (2%)
view
9 x 2 templates
templates
dedicatedhost.template.yaml
entrypoint-new-vpc.template.yaml
29:37 (3%)
59:67 (1%)
view
8 x 2 templates
templates
entrypoint-existing-vpc.template.yaml
entrypoint-new-vpc.template.yaml
352:359 (1%)
360:367 (1%)
view
8 x 2 templates
templates
dedicatedhost.template.yaml
entrypoint-new-vpc.template.yaml
76:83 (3%)
164:171 (1%)
view