amazon-connect / amazon-connect-message-streaming-examples
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:
    • 991 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 76 duplicated lines
  • 7 duplicates
system7% (76 lines)
Duplication per Extension
ts16% (46 lines)
js4% (30 lines)
Duplication per Component (primary)
lib16% (46 lines)
src/lambda/inboundMessageHandler/lib5% (18 lines)
src/lambda/outboundMessageHandler/lib8% (12 lines)
src/common-util/lib0% (0 lines)
src/common-util0% (0 lines)
src/lambda/digitalChannelHealthCheck/lib0% (0 lines)
src/lambda/digitalChannelHealthCheck0% (0 lines)
src/lambda/outboundMessageHandler0% (0 lines)
src/lambda/inboundMessageHandler0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src/lambda/inboundMessageHandler/lib
src/lambda/inboundMessageHandler/lib
inboundHelper.js
inboundHelper.js
73:81 (3%)
84:92 (3%)
view
7 x 2 lib
lib
chat-message-streaming-examples-stack.ts
chat-message-streaming-examples-stack.ts
354:361 (2%)
367:374 (2%)
view
7 x 2 lib
lib
chat-message-streaming-examples-stack.ts
chat-message-streaming-examples-stack.ts
223:229 (2%)
277:283 (2%)
view
6 x 2 lib
lib
chat-message-streaming-examples-stack.ts
chat-message-streaming-examples-stack.ts
188:193 (2%)
309:314 (2%)
view
6 x 2 src/lambda/outboundMessageHandler/lib
src/lambda/outboundMessageHandler/lib
outboundHelper.js
outboundHelper.js
12:17 (16%)
32:37 (16%)
view
6 x 2 lib
lib
chat-message-streaming-examples-stack.ts
chat-message-streaming-examples-stack.ts
188:193 (2%)
266:271 (2%)
view
6 x 2 lib
lib
chat-message-streaming-examples-stack.ts
chat-message-streaming-examples-stack.ts
266:271 (2%)
309:314 (2%)
view