aws-samples / amazon-honeycode-table-api-integration-sample
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
  • 13% duplication:
    • 414 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 55 duplicated lines
  • 5 duplicates
system13% (55 lines)
Duplication per Extension
js13% (55 lines)
Duplication per Component (primary)
lambda/ImportCustomersDynamoDB12% (18 lines)
lambda/ImportCustomersS329% (13 lines)
lambda/ExportContactHistoryS316% (12 lines)
lib7% (12 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
12 x 2 lambda/ExportContactHistoryS3
lambda/ImportCustomersDynamoDB
index.js
index.js
32:48 (16%)
36:52 (8%)
view
7 x 2 lambda/ExportContactHistoryS3
lambda/ImportCustomersS3
index.js
index.js
32:41 (9%)
24:33 (15%)
view
7 x 2 lambda/ImportCustomersDynamoDB
lambda/ImportCustomersS3
index.js
index.js
36:45 (4%)
24:33 (15%)
view
6 x 2 lambda/ImportCustomersDynamoDB
lambda/ImportCustomersS3
index.js
index.js
28:33 (4%)
16:21 (13%)
view
6 x 2 lib
lib
import-customers-dynamodb.js
import-customers-s3.js
45:52 (12%)
43:50 (16%)
view