microsoft / windows-admin-center-sdk
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
  • 15% duplication:
    • 1,662 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 258 duplicated lines
  • 41 duplicates
system15% (258 lines)
Duplication per Extension
js18% (142 lines)
ts14% (116 lines)
Duplication per Component (primary)
Ux/gulps/gulp-resjson32% (120 lines)
Ux/gulps/gulp-merge-json-in-folders20% (46 lines)
Ux/gulps/gulp-svg-code12% (43 lines)
Ux/gulps/gulp-ps-code15% (42 lines)
Ux/tools7% (7 lines)
Plugin0% (0 lines)
Ux0% (0 lines)
Ux/src/app0% (0 lines)
Ux/src/environments0% (0 lines)
Ux/src0% (0 lines)
Ux/src/resources0% (0 lines)
Ux/src/test-util0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 41 duplicates...
Size#FoldersFilesLinesCode
11 x 2 GatewayPluginExample/Ux/gulps/gulp-resjson
GatewayPluginExample/Ux/gulps/gulp-resjson
index.js
index.ts
11:44 (16%)
12:49 (18%)
view
9 x 2 GatewayPluginExample/Ux/gulps/gulp-resjson
GatewayPluginExample/Ux/gulps/gulp-resjson
resjson-convert.js
resjson-convert.ts
129:138 (7%)
163:174 (7%)
view
9 x 2 GatewayPluginExample/Ux/gulps/gulp-ps-code
GatewayPluginExample/Ux/gulps/gulp-ps-code
index.js
index.ts
60:69 (19%)
71:81 (20%)
view
9 x 2 GatewayPluginExample/Ux/gulps/gulp-ps-code
GatewayPluginExample/Ux/gulps/gulp-ps-code
index.js
index.ts
14:34 (19%)
16:39 (20%)
view
9 x 2 GatewayPluginExample/Ux/gulps/gulp-svg-code
GatewayPluginExample/Ux/gulps/gulp-svg-code
index.js
index.ts
67:76 (14%)
78:88 (15%)
view
9 x 2 GatewayPluginExample/Ux/...p-merge-json-in-folders
GatewayPluginExample/Ux/...p-merge-json-in-folders
index.js
index.ts
9:27 (25%)
10:31 (29%)
view
7 x 2 GatewayPluginExample/Ux/...p-merge-json-in-folders
GatewayPluginExample/Ux/gulps/gulp-svg-code
index.ts
index.js
11:20 (22%)
15:23 (11%)
view
7 x 2 GatewayPluginExample/Ux/gulps/gulp-resjson
GatewayPluginExample/Ux/gulps/gulp-svg-code
index.ts
index.js
33:42 (11%)
15:23 (11%)
view
7 x 2 GatewayPluginExample/Ux/gulps/gulp-ps-code
GatewayPluginExample/Ux/gulps/gulp-resjson
index.js
index.js
26:34 (14%)
30:38 (10%)
view
7 x 2 GatewayPluginExample/Ux/...p-merge-json-in-folders
GatewayPluginExample/Ux/gulps/gulp-resjson
index.ts
index.js
11:20 (22%)
30:38 (10%)
view
7 x 2 GatewayPluginExample/Ux/...p-merge-json-in-folders
GatewayPluginExample/Ux/gulps/gulp-resjson
index.js
index.ts
10:18 (19%)
33:42 (11%)
view
7 x 2 GatewayPluginExample/Ux/gulps/gulp-ps-code
GatewayPluginExample/Ux/tools
index.js
gulp-license.js
26:34 (14%)
12:21 (23%)
view
7 x 2 GatewayPluginExample/Ux/...p-merge-json-in-folders
GatewayPluginExample/Ux/gulps/gulp-ps-code
index.js
index.js
10:18 (19%)
26:34 (14%)
view
7 x 2 GatewayPluginExample/Ux/...p-merge-json-in-folders
GatewayPluginExample/Ux/...p-merge-json-in-folders
json-merge.js
json-merge.ts
52:58 (7%)
57:64 (9%)
view
7 x 2 GatewayPluginExample/Ux/gulps/gulp-resjson
GatewayPluginExample/Ux/gulps/gulp-resjson
resjson-convert.js
resjson-convert.ts
112:118 (5%)
147:153 (6%)
view
7 x 2 GatewayPluginExample/Ux/gulps/gulp-ps-code
GatewayPluginExample/Ux/gulps/gulp-svg-code
index.js
index.js
26:34 (14%)
15:23 (11%)
view
7 x 2 GatewayPluginExample/Ux/gulps/gulp-resjson
GatewayPluginExample/Ux/gulps/gulp-svg-code
index.js
index.js
30:38 (10%)
15:23 (11%)
view
7 x 2 GatewayPluginExample/Ux/...p-merge-json-in-folders
GatewayPluginExample/Ux/gulps/gulp-resjson
index.ts
index.ts
11:20 (22%)
33:42 (11%)
view
7 x 2 GatewayPluginExample/Ux/gulps/gulp-resjson
GatewayPluginExample/Ux/tools
index.js
gulp-license.js
30:38 (10%)
12:21 (23%)
view
7 x 2 GatewayPluginExample/Ux/...p-merge-json-in-folders
GatewayPluginExample/Ux/gulps/gulp-ps-code
index.ts
index.ts
11:20 (22%)
30:39 (16%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
9 x 8 GatewayPluginExample/Ux/...p-merge-json-in-folders
GatewayPluginExample/Ux/...p-merge-json-in-folders
GatewayPluginExample/Ux/gulps/gulp-ps-code
GatewayPluginExample/Ux/gulps/gulp-ps-code
GatewayPluginExample/Ux/gulps/gulp-resjson
GatewayPluginExample/Ux/gulps/gulp-resjson
GatewayPluginExample/Ux/gulps/gulp-svg-code
GatewayPluginExample/Ux/tools
index.js
index.ts
index.js
index.ts
index.js
index.ts
index.js
gulp-license.js
10:19 
11:21 
26:35 
30:40 
30:39 
33:43 
15:24 
12:22 
view
6 x 2 GatewayPluginExample/Ux/gulps/gulp-ps-code
GatewayPluginExample/Ux/gulps/gulp-svg-code
ps-code-convert.js
svg-code-convert.js
94:100 
126:132 
view
6 x 2 GatewayPluginExample/Ux/gulps/gulp-ps-code
GatewayPluginExample/Ux/gulps/gulp-svg-code
ps-code-convert.ts
svg-code-convert.ts
120:127 
145:152 
view