microsoft / FMLab
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
  • 26% duplication:
    • 790 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 210 duplicated lines
  • 6 duplicates
system26% (210 lines)
Duplication per Extension
cs28% (210 lines)
Duplication per Component (primary)
FMLab/ODataConsoleApplication51% (105 lines)
FMLab/Odata4ConsoleApplication50% (105 lines)
FMLab/ConnectorClientApplication0% (0 lines)
FMLab0% (0 lines)
FMLab/TaskRecorderScreenshot0% (0 lines)

Duplication Between Components (50+ lines)

G FMLab/ODataConsoleApplication FMLab/ODataConsoleApplication FMLab/Odata4ConsoleApplication FMLab/Odata4ConsoleApplication FMLab/ODataConsoleApplication--FMLab/Odata4ConsoleApplication 210

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
40 x 2 FMLab/ODataConsoleApplication
FMLab/Odata4ConsoleApplication
BrowserForm.cs
BrowserForm.cs
65:146 (64%)
65:146 (64%)
view
21 x 2 FMLab/ODataConsoleApplication
FMLab/Odata4ConsoleApplication
BrowserForm.cs
BrowserForm.cs
1:59 (33%)
1:59 (33%)
view
14 x 2 FMLab/ODataConsoleApplication
FMLab/Odata4ConsoleApplication
AuthenticationHelper.cs
AuthenticationHelper.cs
52:77 (42%)
46:71 (43%)
view
11 x 2 FMLab/ODataConsoleApplication
FMLab/Odata4ConsoleApplication
Program.cs
Program.cs
93:112 (10%)
72:91 (9%)
view
10 x 2 FMLab/ODataConsoleApplication
FMLab/Odata4ConsoleApplication
Program.cs
Program.cs
67:78 (9%)
33:44 (8%)
view
9 x 2 FMLab/ODataConsoleApplication
FMLab/Odata4ConsoleApplication
AuthenticationHelper.cs
AuthenticationHelper.cs
32:43 (27%)
33:43 (28%)
view