microsoft / service-fabric-aspnetcore
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
  • 7% duplication:
    • 619 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 44 duplicated lines
  • 2 duplicates
system7% (44 lines)
Duplication per Extension
cs11% (44 lines)
Duplication per Component (primary)
src/Microsoft.ServiceFabric.AspNetCore20% (44 lines)
ROOT0% (0 lines)
properties0% (0 lines)
properties/stylecop0% (0 lines)
src/Microsoft.ServiceFabric.AspNetCore.Configuration0% (0 lines)
src/Microsoft.ServiceFabric.AspNetCore.HttpSys0% (0 lines)
src/Microsoft.ServiceFabric.AspNetCore.Kestrel0% (0 lines)
Longest Duplicates
The list of 2 longest duplicates.
See data for all 2 duplicates...
Size#FoldersFilesLinesCode
13 x 2 src/Microsoft.ServiceFabric.AspNetCore
src/Microsoft.ServiceFabric.AspNetCore
GenericHostCommunicationListener.cs
WebHostCommunicationListener.cs
29:54 (38%)
27:52 (41%)
view
9 x 2 src/Microsoft.ServiceFabric.AspNetCore
src/Microsoft.ServiceFabric.AspNetCore
GenericHostCommunicationListener.cs
WebHostCommunicationListener.cs
68:90 (26%)
61:83 (29%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
8 x 2 src/Microsoft.ServiceFabric.AspNetCore.HttpSys
src/Microsoft.ServiceFabric.AspNetCore.HttpSys
HttpSysCommunicationListener.cs
HttpSysCommunicationListener.cs
27:36 
45:54 
view
8 x 2 src/Microsoft.ServiceFabric.AspNetCore.Kestrel
src/Microsoft.ServiceFabric.AspNetCore.Kestrel
KestrelCommunicationListener.cs
KestrelCommunicationListener.cs
55:64 
77:86 
view
7 x 2 src/Microsoft.ServiceFabric.AspNetCore
src/Microsoft.ServiceFabric.AspNetCore
GenericHostCommunicationListener.cs
WebHostCommunicationListener.cs
42:49 
40:47 
view
6 x 2 src/Microsoft.ServiceFabric.AspNetCore
src/Microsoft.ServiceFabric.AspNetCore
GenericHostCommunicationListener.cs
WebHostCommunicationListener.cs
34:40 
32:38 
view