amazon-connect / amazon-connect-chat-interface
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
  • 2% duplication:
    • 3,284 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 66 duplicated lines
  • 3 duplicates
system2% (66 lines)
Duplication per Extension
js2% (66 lines)
Duplication per Component (primary)
src/components2% (56 lines)
src/constants30% (10 lines)
configuration0% (0 lines)
configuration/jest0% (0 lines)
src/propTypes0% (0 lines)
src0% (0 lines)
src/assets0% (0 lines)
src/utils0% (0 lines)
src/theme0% (0 lines)
src/hooks0% (0 lines)
local-testing0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
12 x 2 src/components/Chat/Chat...ges/InteractiveMessages
src/components/Chat/Chat...ges/InteractiveMessages
ListPicker.js
Panel.js
97:109 (14%)
62:74 (20%)
view
11 x 2 src/components/Chat/Chat...ges/InteractiveMessages
src/components/Chat/Chat...ges/InteractiveMessages
ListPicker.js
Panel.js
26:41 (13%)
28:42 (18%)
view
10 x 2 src/components/Chat
src/constants
constants.js
global.js
8:17 (62%)
5:14 (30%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 2 scripts
scripts
test.js
test.js
26:33 
35:42 
view