microsoft / SimpleRemote
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,359 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 277 duplicated lines
  • 26 duplicates
system11% (277 lines)
Duplication per Extension
cs12% (277 lines)
Duplication per Component (primary)
DUTRemoteTests26% (201 lines)
SimpleDUTRemote17% (48 lines)
SimpleDUTRemote/HelperFunctions15% (14 lines)
SimpleRemoteConsole/ServiceInterop4% (14 lines)
ROOT0% (0 lines)
PluginExample0% (0 lines)
SimpleDUTClientLibrary0% (0 lines)
SimpleDUTCommonLibrary0% (0 lines)
SimpleDUTRemote/JobSystem0% (0 lines)
SimpleJsonRpc0% (0 lines)
SimpleRemoteConsole0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 26 duplicates...
Size#FoldersFilesLinesCode
18 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
251:276 (4%)
281:306 (4%)
view
15 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
279:297 (3%)
309:327 (3%)
view
15 x 2 DUTRemoteTests
DUTRemoteTests
JobTests.cs
JobTests.cs
109:130 (6%)
170:191 (6%)
view
13 x 2 DUTRemoteTests
DUTRemoteTests
JobTests.cs
JobTests.cs
170:187 (5%)
277:294 (5%)
view
13 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
251:267 (3%)
311:327 (3%)
view
13 x 2 SimpleDUTRemote
SimpleDUTRemote
Functions.cs
Functions.cs
87:103 (4%)
132:148 (4%)
view
13 x 2 DUTRemoteTests
DUTRemoteTests
JobTests.cs
JobTests.cs
109:126 (5%)
277:294 (5%)
view
11 x 2 SimpleDUTRemote
SimpleDUTRemote
Functions.cs
Functions.cs
202:222 (3%)
257:277 (3%)
view
8 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
393:403 (1%)
575:585 (1%)
view
8 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
457:467 (1%)
575:585 (1%)
view
8 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
426:436 (1%)
457:467 (1%)
view
8 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
393:403 (1%)
426:436 (1%)
view
8 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
393:403 (1%)
457:467 (1%)
view
8 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
426:436 (1%)
575:585 (1%)
view
7 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
411:422 (1%)
472:483 (1%)
view
7 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
441:452 (1%)
472:483 (1%)
view
7 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
411:422 (1%)
441:452 (1%)
view
7 x 2 SimpleDUTRemote/HelperFunctions
SimpleDUTRemote/HelperFunctions
LargeFileTransfers.cs
LargeFileTransfers.cs
24:31 (14%)
80:87 (14%)
view
7 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
472:483 (1%)
590:601 (1%)
view
7 x 2 DUTRemoteTests
DUTRemoteTests
ClientTests.cs
ClientTests.cs
441:452 (1%)
590:601 (1%)
view