awslabs / amazon-s3-data-replication-hub-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
  • 7% duplication:
    • 1,121 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 88 duplicated lines
  • 5 duplicates
system7% (88 lines)
Duplication per Extension
ts8% (80 lines)
js8% (8 lines)
Duplication per Component (primary)
source/lib8% (80 lines)
deployment/cdk-solution-helper9% (8 lines)
source0% (0 lines)
source/lambda0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
14 x 2 source/lib
source/lib
main-stack.ts
main-stack.ts
359:373 (4%)
395:410 (4%)
view
8 x 2 deployment/cdk-solution-helper
source/lib
index.js
ecs-finder-stack.ts
55:62 (9%)
141:148 (5%)
view
8 x 2 source/lib
source/lib
ec2-worker-stack.ts
ecs-finder-stack.ts
72:81 (4%)
102:111 (5%)
view
8 x 2 source/lib
source/lib
dashboard-stack.ts
dashboard-stack.ts
156:163 (5%)
171:178 (5%)
view
6 x 2 source/lib
source/lib
dashboard-stack.ts
dashboard-stack.ts
86:91 (3%)
95:100 (3%)
view