aws-samples / aws-modernization-workshop-with-cloudone-application-security
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
  • 24% duplication:
    • 1,345 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 325 duplicated lines
  • 32 duplicates
system24% (325 lines)
Duplication per Extension
yaml30% (325 lines)
Duplication per Component (primary)
static/cft38% (285 lines)
pipeline/webhosting12% (40 lines)
static/css0% (0 lines)
ROOT0% (0 lines)
layouts/partials0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 32 duplicates...
Size#FoldersFilesLinesCode
19 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
143:161 (3%)
166:184 (3%)
view
19 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
61:79 (3%)
84:102 (3%)
view
17 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
322:338 (3%)
442:458 (3%)
view
17 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
213:229 (3%)
322:338 (3%)
view
17 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
112:128 (3%)
192:208 (3%)
view
17 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
213:229 (3%)
442:458 (3%)
view
17 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
322:338 (3%)
375:391 (3%)
view
17 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
213:229 (3%)
375:391 (3%)
view
17 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
375:391 (3%)
442:458 (3%)
view
15 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
67:81 (2%)
149:163 (2%)
view
14 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
418:431 (2%)
484:497 (2%)
view
13 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
90:102 (2%)
172:184 (2%)
view
13 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
90:102 (2%)
149:161 (2%)
view
13 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
394:406 (2%)
461:473 (2%)
view
13 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
67:79 (2%)
172:184 (2%)
view
12 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
513:524 (2%)
527:538 (2%)
view
11 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
421:431 (1%)
514:524 (1%)
view
11 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
487:497 (1%)
528:538 (1%)
view
11 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
487:497 (1%)
514:524 (1%)
view
11 x 2 static/cft
static/cft
c1as-lambda-workshop.yaml
c1as-lambda-workshop.yaml
421:431 (1%)
528:538 (1%)
view