microsoft / IIS.Common
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
  • 20% duplication:
    • 15,186 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,123 duplicated lines
  • 682 duplicates
system20% (3,123 lines)
Duplication per Extension
h22% (1,781 lines)
cxx29% (738 lines)
cpp18% (470 lines)
vcxproj39% (48 lines)
hxx14% (36 lines)
cs2% (34 lines)
c11% (16 lines)
Duplication per Component (primary)
Include24% (1,661 lines)
lib25% (1,106 lines)
reftrace/src15% (142 lines)
open-inc12% (121 lines)
reftrace/include9% (35 lines)
Managed/NativeMethods2% (34 lines)
reftrace25% (24 lines)
Managed/MySQL0% (0 lines)
Managed/PseudoLoc0% (0 lines)
Managed/Util0% (0 lines)
ROOT0% (0 lines)
build0% (0 lines)
build/settings0% (0 lines)
version0% (0 lines)

Duplication Between Components (50+ lines)

G Include Include open-inc open-inc Include--open-inc 182 lib lib Include--lib 158

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 682 duplicates...
Size#FoldersFilesLinesCode
53 x 2 lib
lib
cxx
base64.cxx
base64.cxx
36:130 (23%)
275:369 (23%)
view
42 x 2 Include
open-inc
sttimer.h
sttimer.h
141:241 (39%)
130:230 (42%)
view
31 x 2 lib
lib
cxx
base64.cxx
base64.cxx
180:241 (13%)
419:480 (13%)
view
29 x 2 Include
open-inc
sttimer.h
sttimer.h
17:64 (27%)
16:63 (29%)
view
28 x 2 Include
Include
httpserv_xp.h
httpserv_xp.h
451:482 (1%)
754:785 (1%)
view
21 x 2 Include
Include
hashtable.h
treehash.h
627:665 (5%)
810:848 (4%)
view
20 x 2 lib
lib
cxx
base64.cxx
base64.cxx
132:177 (8%)
371:416 (8%)
view
18 x 2 lib
lib
ahutil.cpp
ahutil.cpp
301:328 (1%)
427:454 (1%)
view
17 x 2 Managed/NativeMethods
Managed/NativeMethods
Mlang.cs
Mlang.cs
548:564 (2%)
583:599 (2%)
view
17 x 2 lib
lib
cxx
normalize.cxx
ulparse.cxx
127:149 (4%)
611:633 (2%)
view
17 x 2 lib
reftrace
vcxproj
CommonLib.vcxproj
reftrace.vcxproj
2:21 (27%)
2:21 (27%)
view
16 x 2 Include
Include
statichash.h
statichash.h
167:212 (6%)
524:569 (6%)
view
15 x 2 Include
Include
http_xp.h
http_xp.h
2495:2514 (1%)
2516:2533 (1%)
view
15 x 2 reftrace/src
reftrace/src
cxx
pudebug.cxx
pudebug.cxx
607:626 (2%)
794:813 (2%)
view
14 x 2 Include
Include
httpserv_xp.h
httpserv_xp.h
2623:2643 (<1%)
2870:2889 (<1%)
view
14 x 2 Include
Include
httpserv_xp.h
httpserv_xp.h
2645:2663 (<1%)
2707:2726 (<1%)
view
14 x 2 Include
Include
httpserv_xp.h
httpserv_xp.h
2830:2849 (<1%)
2851:2868 (<1%)
view
14 x 2 Include
Include
httpserv_xp.h
httpserv_xp.h
2665:2685 (<1%)
2790:2809 (<1%)
view
14 x 2 Include
Include
httpserv_xp.h
httpserv_xp.h
2645:2663 (<1%)
2728:2746 (<1%)
view
14 x 2 Include
Include
httpserv_xp.h
httpserv_xp.h
2623:2643 (<1%)
2851:2868 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 Include
Include
hxx
multisz.hxx
multisza.hxx
89:95 
89:95 
view