microsoft / DirectXMesh
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
  • 46% duplication:
    • 14,063 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 6,590 duplicated lines
  • 3,309 duplicates
system46% (6,590 lines)
Duplication per Extension
vcxproj84% (3,991 lines)
cpp23% (1,574 lines)
filters98% (673 lines)
h18% (352 lines)
Duplication per Component (primary)
DirectXMesh56% (5,465 lines)
Meshconvert26% (876 lines)
Utilities24% (249 lines)

Duplication Between Components (50+ lines)

G DirectXMesh DirectXMesh Meshconvert Meshconvert DirectXMesh--Meshconvert 939

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 3,309 duplicates...
Size#FoldersFilesLinesCode
253 x 2 DirectXMesh
DirectXMesh
vcxproj
DirectXMesh_Desktop_2019_Win10.vcxproj
DirectXMesh_Desktop_2022_Win10.vcxproj
179:510 (64%)
179:510 (64%)
view
180 x 2 DirectXMesh
DirectXMesh
vcxproj
DirectXMesh_Desktop_2019.vcxproj
DirectXMesh_Desktop_2022.vcxproj
124:358 (64%)
124:358 (64%)
view
158 x 2 DirectXMesh
DirectXMesh
vcxproj
DirectXMesh_Windows10_2019.vcxproj
DirectXMesh_Windows10_2022.vcxproj
203:387 (49%)
203:387 (49%)
view
149 x 2 Meshconvert
Meshconvert
vcxproj
Meshconvert_Desktop_2019.vcxproj
Meshconvert_Desktop_2022.vcxproj
127:324 (56%)
127:324 (56%)
view
67 x 2 DirectXMesh
DirectXMesh
vcxproj
DirectXMesh_Windows10_2017.vcxproj
DirectXMesh_Windows10_2019.vcxproj
1:80 (21%)
1:80 (20%)
view
67 x 2 DirectXMesh
DirectXMesh
vcxproj
DirectXMesh_Windows10_2019.vcxproj
DirectXMesh_Windows10_2022.vcxproj
2:81 (20%)
2:81 (20%)
view
66 x 2 DirectXMesh
DirectXMesh
vcxproj
DirectXMesh_Windows10_2017.vcxproj
DirectXMesh_Windows10_2022.vcxproj
2:80 (21%)
2:80 (20%)
view
53 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_GDK_2017.vcxproj.filters
DirectXMesh_GDK_2019.vcxproj.filters
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2019_Win10.vcxpro...
DirectXMesh_Desktop_2022.vcxproj.filters
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2017_Win10.vcxpro...
DirectXMesh_Desktop_2019_Win10.vcxpro...
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2017.vcxproj.filters
DirectXMesh_Desktop_2019_Win10.vcxpro...
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2017_Win10.vcxpro...
DirectXMesh_Desktop_2022.vcxproj.filters
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2019.vcxproj.filters
DirectXMesh_Desktop_2019_Win10.vcxpro...
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2019_Win10.vcxpro...
DirectXMesh_Desktop_2022_Win10.vcxpro...
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2017_Win10.vcxpro...
DirectXMesh_Desktop_2022_Win10.vcxpro...
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2017.vcxproj.filters
DirectXMesh_Desktop_2017_Win10.vcxpro...
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2017.vcxproj.filters
DirectXMesh_Desktop_2019.vcxproj.filters
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2017.vcxproj.filters
DirectXMesh_Desktop_2022.vcxproj.filters
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2017.vcxproj.filters
DirectXMesh_Desktop_2022_Win10.vcxpro...
1:77 (100%)
1:77 (100%)
view
51 x 2 DirectXMesh
DirectXMesh
filters
DirectXMesh_Desktop_2022.vcxproj.filters
DirectXMesh_Desktop_2022_Win10.vcxpro...
1:77 (100%)
1:77 (100%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
43 x 2 DirectXMesh
DirectXMesh
DirectXMeshVBReader.cpp
DirectXMeshVBWriter.cpp
140:197 
139:196 
view
14 x 2 DirectXMesh
DirectXMesh
DirectXMeshVBReader.cpp
DirectXMeshVBWriter.cpp
202:221 
201:220 
view
9 x 2 DirectXMesh
DirectXMesh
DirectXMeshVBReader.cpp
DirectXMeshVBWriter.cpp
74:83 
74:83 
view