aws-cloudformation / cloudformation-cli-typescript-plugin
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
  • 5% duplication:
    • 2,358 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 118 duplicated lines
  • 20 duplicates
system5% (118 lines)
Duplication per Extension
ts6% (118 lines)
Duplication per Component (primary)
src4% (86 lines)
python/rpdk/typescript/templates20% (32 lines)
ROOT0% (0 lines)
python/rpdk/typescript0% (0 lines)
python/rpdk/typescript/data0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 20 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src
src
resource.ts
resource.ts
402:411 (1%)
569:578 (1%)
view
9 x 2 src
src
log-delivery.ts
log-delivery.ts
339:350 (2%)
546:557 (2%)
view
7 x 2 python/rpdk/typescript/templates
python/rpdk/typescript/templates
handlers.ts
handlers.ts
32:38 (8%)
70:76 (8%)
view
7 x 2 src
src
log-delivery.ts
log-delivery.ts
106:114 (1%)
367:375 (1%)
view
6 x 2 python/rpdk/typescript/templates
python/rpdk/typescript/templates
handlers.ts
handlers.ts
70:75 (7%)
95:100 (7%)
view
6 x 2 src
src
log-delivery.ts
log-delivery.ts
221:226 (1%)
345:350 (1%)
view
6 x 2 python/rpdk/typescript/templates
python/rpdk/typescript/templates
handlers.ts
handlers.ts
32:37 (7%)
119:124 (7%)
view
6 x 2 python/rpdk/typescript/templates
python/rpdk/typescript/templates
handlers.ts
handlers.ts
119:124 (7%)
142:147 (7%)
view
6 x 2 src
src
metrics.ts
metrics.ts
100:105 (3%)
161:166 (3%)
view
6 x 2 python/rpdk/typescript/templates
python/rpdk/typescript/templates
handlers.ts
handlers.ts
95:100 (7%)
142:147 (7%)
view
6 x 2 src
src
proxy.ts
proxy.ts
49:54 (2%)
97:102 (2%)
view
6 x 2 src
src
log-delivery.ts
log-delivery.ts
417:422 (1%)
552:557 (1%)
view
6 x 2 python/rpdk/typescript/templates
python/rpdk/typescript/templates
handlers.ts
handlers.ts
70:75 (7%)
119:124 (7%)
view
6 x 2 python/rpdk/typescript/templates
python/rpdk/typescript/templates
handlers.ts
handlers.ts
32:37 (7%)
142:147 (7%)
view
6 x 2 python/rpdk/typescript/templates
python/rpdk/typescript/templates
handlers.ts
handlers.ts
32:37 (7%)
95:100 (7%)
view
6 x 2 src
src
log-delivery.ts
log-delivery.ts
221:226 (1%)
552:557 (1%)
view
6 x 2 src
src
log-delivery.ts
log-delivery.ts
221:226 (1%)
417:422 (1%)
view
6 x 2 src
src
log-delivery.ts
log-delivery.ts
345:350 (1%)
417:422 (1%)
view
6 x 2 python/rpdk/typescript/templates
python/rpdk/typescript/templates
handlers.ts
handlers.ts
70:75 (7%)
142:147 (7%)
view
6 x 2 python/rpdk/typescript/templates
python/rpdk/typescript/templates
handlers.ts
handlers.ts
95:100 (7%)
119:124 (7%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 2 src
src
log-delivery.ts
log-delivery.ts
221:228 
345:352 
view