microsoft / ethr
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
  • 6% duplication:
    • 3,402 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 206 duplicated lines
  • 19 duplicates
system6% (206 lines)
Duplication per Extension
go6% (206 lines)
Duplication per Component (primary)
ROOT6% (206 lines)
snap0% (0 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
23 x 2 ROOT
ROOT
plt_darwin.go
plt_linux.go
363:396 (6%)
156:189 (20%)
view
14 x 2 ROOT
ROOT
client.go
client.go
553:571 (1%)
745:763 (1%)
view
13 x 2 ROOT
ROOT
client.go
server.go
374:386 (1%)
219:231 (6%)
view
10 x 2 ROOT
ROOT
client.go
client.go
266:275 (1%)
974:983 (1%)
view
10 x 2 ROOT
ROOT
client.go
server.go
357:372 (1%)
201:216 (4%)
view
8 x 2 ROOT
ROOT
client.go
client.go
528:535 (1%)
767:774 (1%)
view
8 x 2 ROOT
ROOT
client.go
client.go
512:521 (1%)
682:691 (1%)
view
7 x 2 ROOT
ROOT
client.go
server.go
262:269 (<1%)
148:155 (3%)
view
6 x 2 ROOT
ROOT
plt_darwin.go
plt_windows.go
371:377 (1%)
228:238 (2%)
view
6 x 2 ROOT
ROOT
client.go
client.go
270:275 (<1%)
529:534 (<1%)
view
6 x 2 ROOT
ROOT
plt_linux.go
plt_windows.go
164:170 (5%)
228:238 (2%)
view
6 x 2 ROOT
ROOT
client.go
client.go
392:397 (<1%)
978:983 (<1%)
view
6 x 2 ROOT
ROOT
client.go
client.go
392:397 (<1%)
768:773 (<1%)
view
6 x 2 ROOT
ROOT
client.go
client.go
270:275 (<1%)
768:773 (<1%)
view
6 x 2 ROOT
ROOT
client.go
client.go
768:773 (<1%)
978:983 (<1%)
view
6 x 2 ROOT
ROOT
client.go
client.go
255:260 (<1%)
968:973 (<1%)
view
6 x 2 ROOT
ROOT
client.go
client.go
270:275 (<1%)
392:397 (<1%)
view
6 x 2 ROOT
ROOT
client.go
client.go
529:534 (<1%)
978:983 (<1%)
view
6 x 2 ROOT
ROOT
client.go
client.go
392:397 (<1%)
529:534 (<1%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 ROOT
ROOT
plt_darwin.go
plt_linux.go
371:383 
164:176 
view
9 x 2 ROOT
ROOT
plt_darwin.go
plt_linux.go
385:394 
178:187 
view
8 x 2 ROOT
ROOT
utils.go
utils.go
173:181 
183:191 
view
6 x 2 ROOT
ROOT
clientui.go
clientui.go
90:96 
98:106 
view
6 x 2 ROOT
ROOT
plt_darwin.go
plt_linux.go
363:369 
156:162 
view