microsoft / MFCStoreClient
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
  • 59% duplication:
    • 1,611 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 957 duplicated lines
  • 83 duplicates
system59% (957 lines)
Duplication per Extension
vcxproj84% (632 lines)
h54% (118 lines)
cpp21% (108 lines)
filters69% (99 lines)
Duplication per Component (primary)
WindowsStore73% (245 lines)
WindowsStoreDLL74% (241 lines)
Win32TestApp65% (174 lines)
MFCClient32% (171 lines)
ConsoleApplication180% (126 lines)

Duplication Between Components (50+ lines)

G WindowsStore WindowsStore WindowsStoreDLL WindowsStoreDLL WindowsStore--WindowsStoreDLL 410 ConsoleApplication1 ConsoleApplication1 Win32TestApp Win32TestApp ConsoleApplication1--Win32TestApp 232 MFCClient MFCClient ConsoleApplication1--MFCClient 150 ConsoleApplication1--WindowsStoreDLL 112 ConsoleApplication1--WindowsStore 92 Win32TestApp--WindowsStoreDLL 112 Win32TestApp--WindowsStore 92 MFCClient--Win32TestApp 218 MFCClient--WindowsStore 104 MFCClient--WindowsStoreDLL 84

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 83 duplicates...
Size#FoldersFilesLinesCode
53 x 2 ConsoleApplication1
Win32TestApp
vcxproj
ConsoleApplication1.vcxproj
Win32TestApp.vcxproj
26:93 (40%)
26:93 (36%)
view
36 x 2 WindowsStore
WindowsStoreDLL
vcxproj
WindowsStore.vcxproj
WindowsStoreDLL.vcxproj
26:72 (25%)
26:72 (25%)
view
30 x 2 MFCClient
Win32TestApp
WindowsVersionHelper.h
WindowsVersionHelper.h
12:78 (100%)
12:78 (100%)
view
28 x 2 WindowsStore
WindowsStoreDLL
filters
WindowsStore.vcxproj.filters
WindowsStoreDLL.vcxproj.filters
1:39 (100%)
1:39 (100%)
view
26 x 2 Win32TestApp
WindowsStoreDLL
vcxproj
Win32TestApp.vcxproj
WindowsStoreDLL.vcxproj
50:86 (17%)
50:86 (18%)
view
26 x 2 ConsoleApplication1
WindowsStoreDLL
vcxproj
ConsoleApplication1.vcxproj
WindowsStoreDLL.vcxproj
50:86 (19%)
50:86 (18%)
view
23 x 2 WindowsStore
WindowsStoreDLL
WindowsStore.h
WindowsStore.h
15:46 (100%)
15:46 (100%)
view
22 x 2 MFCClient
WindowsStore
vcxproj
MFCClient.vcxproj
WindowsStore.vcxproj
59:90 (11%)
55:86 (15%)
view
21 x 2 WindowsStore
WindowsStoreDLL
WindowsStore.cpp
WindowsStore.cpp
49:91 (52%)
37:79 (60%)
view
18 x 2 WindowsStore
WindowsStoreDLL
WindowsStoreImpl.cpp
WindowsStoreImpl.cpp
83:107 (23%)
84:108 (22%)
view
17 x 2 MFCClient
Win32TestApp
vcxproj
MFCClient.vcxproj
Win32TestApp.vcxproj
1:22 (9%)
1:22 (11%)
view
17 x 2 MFCClient
WindowsStoreDLL
vcxproj
MFCClient.vcxproj
WindowsStoreDLL.vcxproj
1:22 (9%)
1:22 (12%)
view
17 x 2 MFCClient
MFCClient
vcxproj
MFCClient.vcxproj
MFCClient.vcxproj
156:178 (9%)
189:211 (9%)
view
17 x 2 ConsoleApplication1
WindowsStore
vcxproj
ConsoleApplication1.vcxproj
WindowsStore.vcxproj
1:22 (12%)
1:22 (11%)
view
17 x 2 WindowsStore
WindowsStoreDLL
vcxproj
WindowsStore.vcxproj
WindowsStoreDLL.vcxproj
1:22 (11%)
1:22 (12%)
view
17 x 2 ConsoleApplication1
Win32TestApp
vcxproj
ConsoleApplication1.vcxproj
Win32TestApp.vcxproj
1:22 (12%)
1:22 (11%)
view
17 x 2 Win32TestApp
WindowsStore
vcxproj
Win32TestApp.vcxproj
WindowsStore.vcxproj
1:22 (11%)
1:22 (11%)
view
17 x 2 ConsoleApplication1
MFCClient
vcxproj
ConsoleApplication1.vcxproj
MFCClient.vcxproj
1:22 (12%)
1:22 (9%)
view
17 x 2 Win32TestApp
WindowsStoreDLL
vcxproj
Win32TestApp.vcxproj
WindowsStoreDLL.vcxproj
1:22 (11%)
1:22 (12%)
view
17 x 2 ConsoleApplication1
WindowsStoreDLL
vcxproj
ConsoleApplication1.vcxproj
WindowsStoreDLL.vcxproj
1:22 (12%)
1:22 (12%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
25 x 2 MFCClient
Win32TestApp
WindowsVersionHelper.h
WindowsVersionHelper.h
47:77 
47:77 
view
11 x 2 MFCClient
Win32TestApp
WindowsVersionHelper.h
WindowsVersionHelper.h
24:37 
24:37 
view
9 x 2 WindowsStore
WindowsStoreDLL
WindowsStore.cpp
WindowsStore.cpp
11:22 
10:21 
view
7 x 2 WindowsStore
WindowsStoreDLL
WindowsStore.cpp
WindowsStore.cpp
64:71 
52:59 
view
7 x 2 WindowsStore
WindowsStoreDLL
WindowsStore.cpp
WindowsStore.cpp
73:80 
61:68 
view
7 x 2 WindowsStore
WindowsStoreDLL
WindowsStore.cpp
WindowsStore.cpp
82:89 
70:77 
view