aws / amazon-ivs-react-native-player
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
  • 11% duplication:
    • 2,109 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 234 duplicated lines
  • 9 duplicates
system11% (234 lines)
Duplication per Extension
tsx19% (234 lines)
Duplication per Component (primary)
example/src/screens32% (216 lines)
src5% (18 lines)
ROOT0% (0 lines)
android/src/main0% (0 lines)
ios0% (0 lines)
example0% (0 lines)
example/android/app0% (0 lines)
example/src0% (0 lines)
example/src/components0% (0 lines)
example/ios/AmazonIvsExample0% (0 lines)
example/ios0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
32 x 2 example/src/screens
example/src/screens
AdvancedExample.tsx
PlaygroundExample.tsx
32:74 (20%)
78:121 (7%)
view
16 x 2 example/src/screens
example/src/screens
AdvancedExample.tsx
PlaygroundExample.tsx
111:126 (10%)
216:231 (3%)
view
15 x 2 example/src/screens
example/src/screens
AdvancedExample.tsx
PlaygroundExample.tsx
140:156 (9%)
389:405 (3%)
view
15 x 2 example/src/screens
example/src/screens
AdvancedExample.tsx
PlaygroundExample.tsx
158:172 (9%)
407:421 (3%)
view
10 x 2 example/src/screens
example/src/screens
AdvancedExample.tsx
PlaygroundExample.tsx
94:103 (6%)
198:207 (2%)
view
9 x 2 src
src
IVSPlayer.tsx
IVSPlayer.tsx
34:42 (2%)
83:91 (2%)
view
8 x 2 example/src/screens
example/src/screens
AdvancedExample.tsx
PlaygroundExample.tsx
128:135 (5%)
232:239 (1%)
view
6 x 2 example/src/screens
example/src/screens
AdvancedExample.tsx
PlaygroundExample.tsx
181:186 (3%)
443:448 (1%)
view
6 x 2 example/src/screens
example/src/screens
AdvancedExample.tsx
PlaygroundExample.tsx
105:110 (3%)
209:214 (1%)
view