awslabs / amazon-ecr-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
  • 5% duplication:
    • 799 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 43 duplicated lines
  • 4 duplicates
system5% (43 lines)
Duplication per Extension
ts5% (43 lines)
Duplication per Component (primary)
source/lib7% (43 lines)
source0% (0 lines)
source/lambda0% (0 lines)
deployment/cdk-solution-helper0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
11 x 2 source/lib
source/lib
aws-data-replication-component-ecr-st...
aws-data-replication-component-ecr-st...
370:380 (1%)
408:418 (1%)
view
7 x 2 source/lib
source/lib
aws-data-replication-component-ecr-st...
aws-data-replication-component-ecr-st...
412:418 (1%)
591:597 (1%)
view
7 x 2 source/lib
source/lib
aws-data-replication-component-ecr-st...
aws-data-replication-component-ecr-st...
761:767 (1%)
770:776 (1%)
view
7 x 2 source/lib
source/lib
aws-data-replication-component-ecr-st...
aws-data-replication-component-ecr-st...
374:380 (1%)
591:597 (1%)
view