aws-samples / amazon-ivs-simple-chat-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
  • 3% duplication:
    • 1,423 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 47 duplicated lines
  • 6 duplicates
system3% (47 lines)
Duplication per Extension
yaml11% (24 lines)
css2% (23 lines)
Duplication per Component (primary)
serverless11% (24 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/chat0% (0 lines)
web-ui/public0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
8 x 2 web-ui/src
web-ui/src
index.css
index.css
91:98 (1%)
109:116 (1%)
view
8 x 2 serverless
serverless
template.yaml
template.yaml
141:148 (3%)
176:183 (3%)
view
8 x 2 serverless
serverless
template.yaml
template.yaml
128:135 (3%)
176:183 (3%)
view
8 x 2 serverless
serverless
template.yaml
template.yaml
128:135 (3%)
141:148 (3%)
view
7 x 2 web-ui/src
web-ui/src
index.css
index.css
23:29 (1%)
92:98 (1%)
view
7 x 2 web-ui/src
web-ui/src
index.css
index.css
23:29 (1%)
110:116 (1%)
view