aws-samples / aws-amplify-connect
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,541 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 94 duplicated lines
  • 7 duplicates
system6% (94 lines)
Duplication per Extension
js8% (82 lines)
py6% (12 lines)
Duplication per Component (primary)
amplify/backend/function/apiRESTtelephonenumber/src23% (40 lines)
src/CCPData6% (30 lines)
amplify/backend/function/ConnectDialerJS/src6% (12 lines)
Python6% (12 lines)
amplify/backend/auth/lonelyconnect0f4684340% (0 lines)
amplify/backend/function/csvUploadStoreTrigger/src0% (0 lines)
amplify/backend/function/ConnectDialerSuccessUpdateJS/src0% (0 lines)
src0% (0 lines)
public0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
8 x 2 amplify/backend/function...RESTtelephonenumber/src
amplify/backend/function...RESTtelephonenumber/src
app.js
app.js
122:130 (4%)
151:159 (4%)
view
8 x 2 src/CCPData
src/CCPData
CCPData.js
CCPData.js
55:65 (3%)
161:172 (3%)
view
7 x 2 src/CCPData
src/CCPData
CCPData.js
CCPData.js
41:47 (2%)
143:151 (2%)
view
6 x 2 amplify/backend/function/ConnectDialerJS/src
amplify/backend/function/ConnectDialerJS/src
index.js
index.js
113:119 (3%)
171:177 (3%)
view
6 x 2 amplify/backend/function...RESTtelephonenumber/src
amplify/backend/function...RESTtelephonenumber/src
app.js
app.js
227:234 (3%)
266:273 (3%)
view
6 x 2 amplify/backend/function...RESTtelephonenumber/src
amplify/backend/function...RESTtelephonenumber/src
app.js
app.js
71:78 (3%)
248:261 (3%)
view
6 x 2 Python
Python
ConnectDialer.py
ConnectDialer.py
91:96 (4%)
106:111 (4%)
view