aws-samples / amazon-chime-sma-call-forwarding
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
  • 16% duplication:
    • 1,007 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 170 duplicated lines
  • 12 duplicates
system16% (170 lines)
Duplication per Extension
py16% (84 lines)
js18% (44 lines)
ts19% (42 lines)
Duplication per Component (primary)
client/src15% (44 lines)
lib19% (42 lines)
src/createChimeSMAResources31% (27 lines)
src/createChimeVCResources31% (27 lines)
src/smaLambda12% (18 lines)
src/handlerLambda8% (12 lines)
client/public0% (0 lines)
utils0% (0 lines)

Duplication Between Components (50+ lines)

G src/createChimeSMAResources src/createChimeSMAResources src/createChimeVCResources src/createChimeVCResources src/createChimeSMAResources--src/createChimeVCResources 54

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
11 x 2 src/createChimeSMAResources
src/createChimeVCResources
createChimeSMAResources.py
createChimeVCResources.py
74:86 (12%)
77:89 (12%)
view
11 x 2 lib
lib
call-forwarding-with-sma-stack.ts
call-forwarding-with-sma-stack.ts
75:85 (5%)
112:122 (5%)
view
9 x 2 src/createChimeSMAResources
src/createChimeVCResources
createChimeSMAResources.py
createChimeVCResources.py
35:43 (10%)
37:45 (10%)
view
9 x 2 src/smaLambda
src/smaLambda
callForwardingSMA.py
callForwardingSMA.py
183:191 (6%)
205:213 (6%)
view
8 x 2 client/src
client/src
App.js
App.js
234:241 (3%)
269:276 (3%)
view
7 x 2 src/createChimeSMAResources
src/createChimeVCResources
createChimeSMAResources.py
createChimeVCResources.py
26:33 (8%)
28:35 (8%)
view
7 x 2 lib
lib
call-forwarding-with-sma-stack.ts
call-forwarding-with-sma-stack.ts
58:64 (3%)
88:94 (3%)
view
7 x 2 client/src
client/src
App.js
App.js
75:81 (2%)
108:114 (2%)
view
7 x 2 client/src
client/src
App.js
App.js
83:90 (2%)
116:123 (2%)
view
6 x 2 lib
lib
call-forwarding-with-sma-stack.ts
call-forwarding-with-sma-stack.ts
50:55 (2%)
117:122 (2%)
view
6 x 2 src/handlerLambda
src/handlerLambda
callForwardHandler.py
callForwardHandler.py
178:183 (4%)
196:201 (4%)
view
6 x 2 lib
lib
call-forwarding-with-sma-stack.ts
call-forwarding-with-sma-stack.ts
50:55 (2%)
80:85 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 src/createChimeSMAResources
src/createChimeVCResources
createChimeSMAResources.py
createChimeVCResources.py
0:0 
0:0 
view