awslabs / amazon-kinesis-data-generator
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
  • 8% duplication:
    • 51,936 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,171 duplicated lines
  • 130 duplicates
system8% (4,171 lines)
Duplication per Extension
js7% (4,116 lines)
html13% (55 lines)
Duplication per Component (primary)
web/js8% (4,116 lines)
web13% (55 lines)
setup0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 130 duplicates...
Size#FoldersFilesLinesCode
207 x 2 web/js
web/js
faker.js
faker.js
27280:27486 (<1%)
29638:29844 (<1%)
view
156 x 2 web/js
web/js
faker.js
faker.js
27705:27860 (<1%)
30097:30252 (<1%)
view
131 x 2 web/js
web/js
faker.js
faker.js
26554:26684 (<1%)
28503:28633 (<1%)
view
109 x 2 web/js
web/js
faker.js
faker.js
26140:26248 (<1%)
28146:28254 (<1%)
view
106 x 2 web/js
web/js
faker.js
faker.js
27529:27634 (<1%)
29914:30019 (<1%)
view
72 x 2 web/js
web/js
faker.js
faker.js
26250:26321 (<1%)
28256:28327 (<1%)
view
65 x 2 web/js
web/js
faker.js
faker.js
9258:9322 (<1%)
45222:45286 (<1%)
view
64 x 2 web/js
web/js
faker.js
faker.js
24078:24141 (<1%)
50343:50406 (<1%)
view
53 x 2 web/js
web/js
faker.js
faker.js
8826:8878 (<1%)
28567:28619 (<1%)
view
53 x 2 web/js
web/js
faker.js
faker.js
8826:8878 (<1%)
26618:26670 (<1%)
view
51 x 2 web/js
web/js
faker.js
faker.js
37837:37887 (<1%)
38006:38056 (<1%)
view
50 x 2 web/js
web/js
faker.js
faker.js
37732:37781 (<1%)
37786:37835 (<1%)
view
49 x 2 web/js
web/js
faker.js
faker.js
27635:27683 (<1%)
30021:30069 (<1%)
view
45 x 2 web/js
web/js
faker.js
faker.js
9328:9372 (<1%)
45288:45332 (<1%)
view
43 x 2 web/js
web/js
faker.js
faker.js
27235:27277 (<1%)
29593:29635 (<1%)
view
31 x 2 web/js
web/js
faker.js
faker.js
27924:27954 (<1%)
30344:30374 (<1%)
view
30 x 2 web/js
web/js
faker.js
faker.js
8752:8781 (<1%)
26544:26573 (<1%)
view
26 x 2 web/js
web/js
faker.js
faker.js
27956:27981 (<1%)
30376:30401 (<1%)
view
26 x 2 web/js
web/js
faker.js
faker.js
27153:27178 (<1%)
29462:29487 (<1%)
view
25 x 2 web/js
web/js
faker.js
faker.js
27491:27515 (<1%)
29849:29873 (<1%)
view