aws-samples / data-transfer-hub-cli
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
  • 10% duplication:
    • 1,234 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 132 duplicated lines
  • 9 duplicates
system10% (132 lines)
Duplication per Extension
go10% (132 lines)
Duplication per Component (primary)
dth12% (132 lines)
ROOT0% (0 lines)
cmd0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
31 x 2 dth
dth
job.go
job.go
260:306 (7%)
349:394 (7%)
view
14 x 2 dth
dth
job.go
job.go
231:254 (3%)
323:346 (3%)
view
8 x 2 dth
dth
job.go
job.go
290:299 (1%)
357:368 (1%)
view
8 x 2 dth
dth
job.go
job.go
357:368 (1%)
378:387 (1%)
view
8 x 2 dth
dth
job.go
job.go
268:279 (1%)
378:387 (1%)
view
8 x 2 dth
dth
client.go
client.go
377:385 (2%)
430:438 (2%)
view
8 x 2 dth
dth
job.go
job.go
268:279 (1%)
290:299 (1%)
view
7 x 2 dth
dth
job.go
job.go
108:117 (1%)
404:413 (1%)
view
6 x 2 dth
dth
service.go
service.go
345:350 (2%)
381:386 (2%)
view