aws-samples / amazon-honeycode-connect-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
  • 14% duplication:
    • 407 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 61 duplicated lines
  • 6 duplicates
system14% (61 lines)
Duplication per Extension
js14% (61 lines)
Duplication per Component (primary)
lambda/SavePromptsToDynamoDB29% (47 lines)
lambda/SavePromptsToS320% (14 lines)
lib0% (0 lines)
lambda/ConnectPullPromptsFromDynamoDB0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
7 x 2 lambda/SavePromptsToDynamoDB
lambda/SavePromptsToDynamoDB
index.js
index.js
260:270 (4%)
343:353 (4%)
view
7 x 2 lambda/SavePromptsToDynamoDB
lambda/SavePromptsToS3
index.js
index.js
73:85 (4%)
37:49 (10%)
view
7 x 2 lambda/SavePromptsToDynamoDB
lambda/SavePromptsToDynamoDB
index.js
index.js
165:176 (4%)
260:270 (4%)
view
7 x 2 lambda/SavePromptsToDynamoDB
lambda/SavePromptsToS3
index.js
index.js
111:120 (4%)
114:122 (10%)
view
7 x 2 lambda/SavePromptsToDynamoDB
lambda/SavePromptsToDynamoDB
index.js
index.js
165:176 (4%)
343:353 (4%)
view
6 x 2 lambda/SavePromptsToDynamoDB
lambda/SavePromptsToDynamoDB
index.js
index.js
134:142 (3%)
196:205 (3%)
view