microsoft / service-fabric-reverse-proxy
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:
    • 1,462 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 94 duplicated lines
  • 5 duplicates
system6% (94 lines)
Duplication per Extension
cs4% (62 lines)
cmd25% (32 lines)
Duplication per Component (primary)
sfintegration7% (52 lines)
gateway12% (28 lines)
sfintegration/Controllers7% (14 lines)
deploy0% (0 lines)
ROOT0% (0 lines)
sfintegration/envoymodels0% (0 lines)
sfintegration/models0% (0 lines)

Duplication Between Components (50+ lines)

G gateway gateway sfintegration sfintegration gateway--sfintegration 56

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
12 x 2 gateway
sfintegration
Program.cs
ServiceData.cs
30:49 (8%)
61:78 (2%)
view
12 x 2 sfintegration
sfintegration
ServiceData.cs
ServiceData.cs
695:710 (2%)
867:882 (2%)
view
9 x 2 gateway
sfintegration
cmd
startup.cmd
startup.cmd
17:27 (30%)
12:22 (40%)
view
7 x 2 gateway
sfintegration
cmd
startup.cmd
startup.cmd
1:9 (23%)
1:9 (31%)
view
7 x 2 sfintegration/Controllers
sfintegration/Controllers
v1.cs
v1.cs
240:249 (3%)
310:319 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
15 x 2 gateway
sfintegration
Program.cs
ServiceData.cs
40:56 
69:85 
view