korosuke613 / grpshuffle
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
  • 16% duplication:
    • 1,189 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 195 duplicated lines
  • 23 duplicates
system16% (195 lines)
Duplication per Extension
go14% (97 lines)
html22% (80 lines)
ts16% (18 lines)
Duplication per Component (primary)
go14% (97 lines)
doc22% (80 lines)
node16% (18 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 23 longest duplicates.
See data for all 23 duplicates...
Size#FoldersFilesLinesCode
11 x 2 go/grpshuffle_client/lib
go/grpshuffle_client/lib
146:160 (7%)
181:193 (7%)
view
10 x 2 doc
doc
216:229 (2%)
240:253 (2%)
view
9 x 2 node/src
node/src
32:43 (11%)
71:82 (11%)
view
8 x 2 go/grpshuffle
go/grpshuffle
248:255 (3%)
272:279 (3%)
view
8 x 2 go/grpshuffle_client
go/grpshuffle_client
46:57 (8%)
71:81 (8%)
view
8 x 2 go/grpshuffle
go/grpshuffle
248:255 (3%)
260:267 (3%)
view
8 x 2 go/grpshuffle
go/grpshuffle
260:267 (3%)
272:279 (3%)
view
8 x 2 go/grpshuffle_client/lib
go/grpshuffle_client/lib
104:111 (5%)
145:152 (5%)
view
8 x 2 go/grpshuffle_client/lib
go/grpshuffle_client/lib
149:160 (5%)
203:213 (5%)
view
8 x 2 go/grpshuffle_client/lib
go/grpshuffle_client/lib
184:193 (5%)
203:213 (5%)
view
7 x 2 doc
doc
422:428 (1%)
470:476 (1%)
view
7 x 2 go/grpshuffle_client/lib
go/grpshuffle_client/lib
105:111 (4%)
181:187 (4%)
view
7 x 2 doc
doc
374:380 (1%)
470:476 (1%)
view
7 x 2 doc
doc
374:380 (1%)
422:428 (1%)
view
7 x 2 doc
doc
410:416 (1%)
458:464 (1%)
view
7 x 2 doc
doc
362:368 (1%)
410:416 (1%)
view
7 x 2 doc
doc
362:368 (1%)
458:464 (1%)
view
6 x 2 doc
doc
240:249 (1%)
278:287 (1%)
view
6 x 2 doc
doc
398:403 (1%)
446:451 (1%)
view
6 x 2 doc
doc
216:225 (1%)
278:287 (1%)
view
6 x 2 go/grpshuffle
go/grpshuffle
48:55 (2%)
97:104 (2%)
view
6 x 2 go/grpshuffle
go/grpshuffle
97:104 (2%)
158:165 (2%)
view
6 x 2 go/grpshuffle
go/grpshuffle
48:55 (2%)
158:165 (2%)
view