microsoft / vswhere
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
  • 3% duplication:
    • 2,833 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 112 duplicated lines
  • 7 duplicates
system3% (112 lines)
Duplication per Extension
vcxproj23% (60 lines)
filters15% (22 lines)
props32% (18 lines)
h1% (12 lines)
Duplication per Component (primary)
src/vswhere.lib2% (53 lines)
src/vswhere17% (41 lines)
inc12% (18 lines)
ROOT0% (0 lines)
docker0% (0 lines)
pkg/vswhere/build0% (0 lines)
tools0% (0 lines)

Duplication Between Components (50+ lines)

G src/vswhere.lib src/vswhere.lib src/vswhere src/vswhere src/vswhere.lib--src/vswhere 82

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
11 x 2 src/vswhere.lib
src/vswhere
vcxproj
vswhere.lib.vcxproj
vswhere.vcxproj
1:14 (7%)
1:14 (9%)
view
11 x 2 src/vswhere.lib
src/vswhere
filters
vswhere.lib.vcxproj.filters
vswhere.vcxproj.filters
1:13 (9%)
1:13 (39%)
view
9 x 2 inc
inc
props
Common.Debug.props
Common.props
1:10 (69%)
1:10 (69%)
view
7 x 2 src/vswhere.lib
src/vswhere
vcxproj
vswhere.lib.vcxproj
vswhere.vcxproj
77:83 (4%)
76:82 (6%)
view
6 x 2 src/vswhere.lib
src/vswhere
vcxproj
vswhere.lib.vcxproj
vswhere.vcxproj
30:36 (4%)
31:37 (5%)
view
6 x 2 src/vswhere.lib
src/vswhere.lib
Scope.h
Scope.h
13:18 (11%)
23:28 (11%)
view
6 x 2 src/vswhere.lib
src/vswhere
vcxproj
vswhere.lib.vcxproj
vswhere.vcxproj
166:172 (4%)
135:141 (5%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
7 x 2 src/vswhere.lib
src/vswhere.lib
JsonScope.h
JsonScope.h
49:57 
59:67 
view
6 x 2 src/vswhere.lib
src/vswhere.lib
JsonFormatter.cpp
XmlFormatter.cpp
87:93 
65:71 
view