microsoft / winfile
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
  • 9% duplication:
    • 25,018 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,305 duplicated lines
  • 357 duplicates
system9% (2,305 lines)
Duplication per Extension
c5% (1,021 lines)
vcxproj64% (568 lines)
cpp14% (477 lines)
h6% (132 lines)
filters53% (107 lines)
Duplication per Component (primary)
src6% (1,342 lines)
tools/ExeView19% (547 lines)
tools/FileSignatureInfo33% (212 lines)
tools/VerifyResources37% (204 lines)

Duplication Between Components (50+ lines)

G tools/FileSignatureInfo tools/FileSignatureInfo tools/VerifyResources tools/VerifyResources tools/FileSignatureInfo--tools/VerifyResources 356 tools/ExeView tools/ExeView tools/ExeView--tools/VerifyResources 236 tools/ExeView--tools/FileSignatureInfo 184

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 357 duplicates...
Size#FoldersFilesLinesCode
79 x 2 tools/FileSignatureInfo
tools/VerifyResources
vcxproj
FileSignatureInfo.vcxproj
VerifyResources.vcxproj
130:226 (40%)
130:226 (40%)
view
52 x 2 tools/FileSignatureInfo
tools/VerifyResources
vcxproj
FileSignatureInfo.vcxproj
VerifyResources.vcxproj
34:100 (26%)
34:100 (26%)
view
36 x 2 tools/ExeView
tools/ExeView
iconcur.cpp
iconcur.cpp
196:259 (9%)
589:652 (9%)
view
26 x 2 src
src
vcxproj
Winfile.vcxproj
Winfile.vcxproj.filters
368:393 (7%)
6:31 (25%)
view
23 x 2 tools/FileSignatureInfo
tools/VerifyResources
vcxproj
FileSignatureInfo.vcxproj
VerifyResources.vcxproj
1:30 (11%)
1:30 (11%)
view
20 x 2 src
src
wffile.c
wffile.c
1273:1338 (2%)
1582:1647 (2%)
view
19 x 2 tools/ExeView
tools/ExeView
iconcur.cpp
iconcur.cpp
331:358 (4%)
722:749 (4%)
view
18 x 2 src
src
wffile.c
wffile.c
801:831 (2%)
895:925 (2%)
view
17 x 2 tools/ExeView
tools/FileSignatureInfo
filters
ExeView.vcxproj.filters
FileSignatureInfo.vcxproj.filters
1:22 (36%)
1:22 (70%)
view
17 x 2 tools/FileSignatureInfo
tools/VerifyResources
filters
FileSignatureInfo.vcxproj.filters
VerifyResources.vcxproj.filters
1:22 (70%)
1:22 (70%)
view
17 x 2 tools/ExeView
tools/VerifyResources
filters
ExeView.vcxproj.filters
VerifyResources.vcxproj.filters
1:22 (36%)
1:22 (70%)
view
16 x 2 tools/ExeView
tools/ExeView
filllb.cpp
filllb.cpp
629:651 (3%)
755:777 (3%)
view
16 x 2 src
src
vcxproj
Winfile.vcxproj
Winfile.vcxproj.filters
306:321 (4%)
48:63 (15%)
view
16 x 2 src
src
wfprint.c
wfutil.c
62:82 (21%)
1474:1494 (2%)
view
15 x 2 tools/ExeView
tools/ExeView
iconcur.cpp
iconcur.cpp
363:385 (3%)
754:776 (3%)
view
15 x 2 tools/ExeView
tools/ExeView
iconcur.cpp
iconcur.cpp
303:326 (3%)
694:717 (3%)
view
14 x 2 tools/VerifyResources
tools/VerifyResources
vcxproj
VerifyResources.vcxproj
VerifyResources.vcxproj
173:187 (7%)
191:205 (7%)
view
14 x 2 src
src
wfdlgs.c
wfdlgs3.c
310:331 (2%)
131:159 (1%)
view
14 x 2 src
src
wfdlgs.c
wfdlgs2.c
310:331 (2%)
1822:1851 (1%)
view
14 x 2 tools/FileSignatureInfo
tools/VerifyResources
vcxproj
FileSignatureInfo.vcxproj
VerifyResources.vcxproj
173:187 (7%)
191:205 (7%)
view