aws-solutions / video-on-demand-on-aws-foundations
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
  • 23% duplication:
    • 1,011 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 238 duplicated lines
  • 280 duplicates
system23% (238 lines)
Duplication per Extension
js27% (202 lines)
ts12% (36 lines)
Duplication per Component (primary)
source/custom-resource/lib/s377% (196 lines)
source/cdk/lib12% (36 lines)
source/job-submit/lib5% (6 lines)
source/job-submit0% (0 lines)
source/cdk0% (0 lines)
source/custom-resource/lib/cfn0% (0 lines)
source/custom-resource/lib/mediaconvert0% (0 lines)
source/custom-resource0% (0 lines)
source/job-complete/lib0% (0 lines)
source/job-complete0% (0 lines)
deployment/cdk-solution-helper0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 280 duplicates...
Size#FoldersFilesLinesCode
12 x 2 source/cdk/lib
source/cdk/lib
vod-foundation-stack.ts
vod-foundation-stack.ts
172:184 (4%)
236:248 (4%)
view
12 x 2 source/cdk/lib
source/cdk/lib
vod-foundation-stack.ts
vod-foundation-stack.ts
236:248 (4%)
289:301 (4%)
view
12 x 2 source/cdk/lib
source/cdk/lib
vod-foundation-stack.ts
vod-foundation-stack.ts
172:184 (4%)
289:301 (4%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
177:187 (3%)
321:331 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
57:67 (3%)
261:271 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
57:67 (3%)
273:283 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
165:175 (3%)
201:211 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
81:91 (3%)
201:211 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
177:187 (3%)
309:319 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
105:115 (3%)
153:163 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
105:115 (3%)
141:151 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
165:175 (3%)
189:199 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
81:91 (3%)
189:199 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
105:115 (3%)
165:175 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
57:67 (3%)
237:247 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
93:103 (3%)
309:319 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
81:91 (3%)
177:187 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
165:175 (3%)
177:187 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
57:67 (3%)
249:259 (3%)
view
8 x 2 source/custom-resource/lib/s3
source/custom-resource/lib/s3
index.js
index.js
105:115 (3%)
177:187 (3%)
view