aws-quickstart / quickstart-spotinst-ecs
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
  • 42% duplication:
    • 1,273 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 541 duplicated lines
  • 19 duplicates
system42% (541 lines)
Duplication per Extension
yaml41% (517 lines)
yml100% (24 lines)
Duplication per Component (primary)
templates41% (517 lines)
ci100% (24 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
63 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
322:384 (10%)
141:203 (12%)
view
44 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
393:436 (7%)
229:272 (8%)
view
23 x 2 templates
templates
Elastigroup-ECS.template.yaml
copy_lambda.template.yaml
279:301 (4%)
18:40 (13%)
view
23 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
298:320 (3%)
117:139 (4%)
view
19 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
32:50 (3%)
7:25 (3%)
view
16 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
109:124 (2%)
51:66 (3%)
view
14 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
269:282 (2%)
288:301 (2%)
view
14 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
54:67 (2%)
34:47 (2%)
view
14 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
copy_lambda.template.yaml
269:282 (2%)
27:40 (8%)
view
13 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
131:143 (2%)
83:95 (2%)
view
12 x 2 ci
ci
config.yml
taskcat.yml
1:12 (100%)
1:12 (100%)
view
9 x 2 templates
templates
copy_lambda.template.yaml
copy_lambda.template.yaml
58:66 (5%)
140:148 (5%)
view
8 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS-Master.template.yaml
513:520 (1%)
526:533 (1%)
view
7 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
386:392 (1%)
215:221 (1%)
view
7 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
179:185 (1%)
159:165 (1%)
view
7 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS-Master.template.yaml
179:185 (1%)
340:346 (1%)
view
6 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
copy_lambda.template.yaml
260:265 (1%)
18:23 (3%)
view
6 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
101:106 (1%)
101:106 (1%)
view
6 x 2 templates
templates
Elastigroup-ECS-Master.template.yaml
Elastigroup-ECS.template.yaml
260:265 (1%)
279:284 (1%)
view