aws-samples / amazon-ivs-clip-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:
    • 872 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 50 duplicated lines
  • 8 duplicates
system5% (50 lines)
Duplication per Extension
go19% (38 lines)
css3% (12 lines)
Duplication per Component (primary)
clips30% (24 lines)
clips/hls15% (14 lines)
web-ui2% (12 lines)
cdk/lib0% (0 lines)
cdk0% (0 lines)
clips/remux0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
7 x 2 clips/hls
clips/hls
hls.go
hls.go
38:49 (7%)
60:71 (7%)
view
6 x 2 clips
clips
clips.go
clips.go
103:108 (7%)
120:125 (7%)
view
6 x 2 clips
clips
clips.go
clips.go
77:82 (7%)
103:108 (7%)
view
6 x 2 clips
clips
clips.go
clips.go
89:94 (7%)
120:125 (7%)
view
6 x 2 clips
clips
clips.go
clips.go
77:82 (7%)
89:94 (7%)
view
6 x 2 web-ui
web-ui
style.css
style.css
118:123 (1%)
141:146 (1%)
view
6 x 2 clips
clips
clips.go
clips.go
77:82 (7%)
120:125 (7%)
view
6 x 2 clips
clips
clips.go
clips.go
89:94 (7%)
103:108 (7%)
view