aws-samples / amazon-chime-sdk-amazon-connect-integration-demo
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
  • 6% duplication:
    • 1,250 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 86 duplicated lines
  • 6 duplicates
system6% (86 lines)
Duplication per Extension
css5% (34 lines)
js6% (28 lines)
yaml13% (24 lines)
Duplication per Component (primary)
agent13% (24 lines)
customer/src4% (23 lines)
customer/src/customer8% (22 lines)
agent/src/agent6% (17 lines)
agent/src0% (0 lines)
agent/src/meeting-operations0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
11 x 2 agent/src/agent
customer/src
style.css
style.css
102:114 (10%)
443:455 (2%)
view
8 x 2 customer/src/customer
customer/src/customer
index.js
index.js
31:38 (3%)
168:175 (3%)
view
6 x 2 customer/src
customer/src
style.css
style.css
114:119 (1%)
340:345 (1%)
view
6 x 2 agent
agent
ChimeConnectIntegrationDemo.yaml
ChimeConnectIntegrationDemo.yaml
32:37 (3%)
55:60 (3%)
view
6 x 2 agent
agent
ChimeConnectIntegrationDemo.yaml
ChimeConnectIntegrationDemo.yaml
42:47 (3%)
67:72 (3%)
view
6 x 2 agent/src/agent
customer/src/customer
index.js
index.js
5:10 (4%)
5:10 (2%)
view