aws-samples / amazon-ivs-chime-web-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
  • 5% duplication:
    • 3,305 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 185 duplicated lines
  • 19 duplicates
system5% (185 lines)
Duplication per Extension
jsx9% (116 lines)
yaml13% (46 lines)
css2% (23 lines)
Duplication per Component (primary)
web-ui/src/components/chimeWeb12% (116 lines)
serverless13% (46 lines)
web-ui/src2% (23 lines)
serverless/lambda0% (0 lines)
web-ui/src/components0% (0 lines)
web-ui/src/components/videoPlayer0% (0 lines)
web-ui/src/components/chime0% (0 lines)
web-ui/src/components/chat0% (0 lines)
web-ui/public0% (0 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
26 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
LocalVideo.jsx
RemoteVideo.jsx
76:106 (27%)
42:72 (37%)
view
12 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
Error.jsx
Join.jsx
20:32 (22%)
41:53 (13%)
view
10 x 2 serverless
serverless
template.yaml
template.yaml
132:141 (2%)
148:157 (2%)
view
10 x 2 serverless
serverless
template.yaml
template.yaml
102:111 (2%)
132:141 (2%)
view
10 x 2 serverless
serverless
template.yaml
template.yaml
102:111 (2%)
148:157 (2%)
view
8 x 2 web-ui/src
web-ui/src
index.css
index.css
95:102 (1%)
112:119 (1%)
view
8 x 2 serverless
serverless
template.yaml
template.yaml
88:95 (2%)
118:125 (2%)
view
7 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
LocalVideo.jsx
LocalVideo.jsx
78:84 (7%)
91:97 (7%)
view
7 x 2 web-ui/src
web-ui/src
index.css
index.css
20:26 (<1%)
113:119 (<1%)
view
7 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
RemoteVideo.jsx
RemoteVideo.jsx
44:50 (10%)
57:63 (10%)
view
7 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
LocalVideo.jsx
RemoteVideo.jsx
91:97 (7%)
44:50 (10%)
view
7 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
LocalVideo.jsx
RemoteVideo.jsx
78:84 (7%)
57:63 (10%)
view
7 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
End.jsx
Welcome.jsx
7:17 (35%)
69:79 (6%)
view
7 x 2 web-ui/src
web-ui/src
index.css
index.css
20:26 (<1%)
96:102 (<1%)
view
7 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
Join.jsx
Welcome.jsx
66:76 (8%)
70:80 (6%)
view
6 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
End.jsx
Join.jsx
8:17 (30%)
66:75 (6%)
view
6 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
Join.jsx
Welcome.jsx
81:86 (6%)
86:91 (5%)
view
6 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
Error.jsx
Meeting.jsx
27:32 (11%)
108:113 (3%)
view
6 x 2 web-ui/src/components/chimeWeb
web-ui/src/components/chimeWeb
Join.jsx
Meeting.jsx
48:53 (6%)
108:113 (3%)
view