microsoft / google-play-vsts-extension
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
  • 20% duplication:
    • 2,278 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 456 duplicated lines
  • 25 duplicates
system20% (456 lines)
Duplication per Extension
ts36% (456 lines)
Duplication per Component (primary)
Tasks/GooglePlayRolloutUpdateV386% (179 lines)
Tasks/GooglePlayPromoteV276% (176 lines)
Tasks/GooglePlayStatusUpdateV239% (53 lines)
Tasks/GooglePlayReleaseV4/modules5% (28 lines)
Tasks/GooglePlayReleaseV410% (20 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G Tasks/GooglePlayPromoteV2 Tasks/GooglePlayPromoteV2 Tasks/GooglePlayRolloutUpdateV3 Tasks/GooglePlayRolloutUpdateV3 Tasks/GooglePlayPromoteV2--Tasks/GooglePlayRolloutUpdateV3 352 Tasks/GooglePlayStatusUpdateV2 Tasks/GooglePlayStatusUpdateV2 Tasks/GooglePlayPromoteV2--Tasks/GooglePlayStatusUpdateV2 105 Tasks/GooglePlayReleaseV4/modules Tasks/GooglePlayReleaseV4/modules Tasks/GooglePlayPromoteV2--Tasks/GooglePlayReleaseV4/modules 56 Tasks/GooglePlayRolloutUpdateV3--Tasks/GooglePlayStatusUpdateV2 111 Tasks/GooglePlayReleaseV4/modules--Tasks/GooglePlayRolloutUpdateV3 56

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 25 duplicates...
Size#FoldersFilesLinesCode
108 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayRolloutUpdateV3
googleutil.ts
googleutil.ts
7:182 (71%)
7:182 (72%)
view
40 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayRolloutUpdateV3
googleutil.ts
googleutil.ts
187:260 (26%)
183:256 (27%)
view
22 x 2 Tasks/GooglePlayRolloutUpdateV3
Tasks/GooglePlayStatusUpdateV2
google-play-rollout-update.ts
google-play-status-update.ts
5:32 (44%)
8:35 (36%)
view
19 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayStatusUpdateV2
google-play-promote.ts
google-play-status-update.ts
8:31 (30%)
12:35 (31%)
view
19 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayRolloutUpdateV3
google-play-promote.ts
google-play-rollout-update.ts
8:31 (30%)
9:32 (38%)
view
10 x 2 Tasks/GooglePlayReleaseV4
Tasks/GooglePlayReleaseV4
main.ts
main.ts
190:199 (5%)
242:251 (5%)
view
9 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayRolloutUpdateV3
google-play-promote.ts
google-play-rollout-update.ts
40:51 (14%)
37:48 (18%)
view
9 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayReleaseV4/modules
googleutil.ts
googleutil.ts
159:169 (5%)
94:104 (6%)
view
9 x 2 Tasks/GooglePlayReleaseV4/modules
Tasks/GooglePlayRolloutUpdateV3
googleutil.ts
googleutil.ts
94:104 (6%)
159:169 (6%)
view
8 x 2 Tasks/GooglePlayRolloutUpdateV3
Tasks/GooglePlayStatusUpdateV2
googleutil.ts
googleutil.ts
69:78 (5%)
30:39 (10%)
view
8 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayStatusUpdateV2
googleutil.ts
googleutil.ts
172:181 (5%)
118:127 (10%)
view
8 x 2 Tasks/GooglePlayRolloutUpdateV3
Tasks/GooglePlayStatusUpdateV2
googleutil.ts
googleutil.ts
172:181 (5%)
118:127 (10%)
view
8 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayStatusUpdateV2
googleutil.ts
googleutil.ts
69:78 (5%)
30:39 (10%)
view
7 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayReleaseV4/modules
googleutil.ts
googleutil.ts
214:222 (4%)
173:181 (4%)
view
7 x 2 Tasks/GooglePlayReleaseV4/modules
Tasks/GooglePlayRolloutUpdateV3
googleutil.ts
googleutil.ts
173:181 (4%)
210:218 (4%)
view
7 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayStatusUpdateV2
googleutil.ts
googleutil.ts
55:61 (4%)
28:34 (9%)
view
7 x 2 Tasks/GooglePlayRolloutUpdateV3
Tasks/GooglePlayStatusUpdateV2
googleutil.ts
googleutil.ts
55:61 (4%)
28:34 (9%)
view
7 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayStatusUpdateV2
googleutil.ts
googleutil.ts
187:201 (4%)
129:143 (9%)
view
7 x 2 Tasks/GooglePlayRolloutUpdateV3
Tasks/GooglePlayStatusUpdateV2
googleutil.ts
googleutil.ts
183:197 (4%)
129:143 (9%)
view
6 x 2 Tasks/GooglePlayRolloutUpdateV3
Tasks/GooglePlayStatusUpdateV2
googleutil.ts
googleutil.ts
131:137 (4%)
79:85 (8%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
19 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayRolloutUpdateV3
googleutil.ts
googleutil.ts
242:262 
238:258 
view
18 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayRolloutUpdateV3
googleutil.ts
googleutil.ts
212:231 
208:227 
view
9 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayRolloutUpdateV3
googleutil.ts
googleutil.ts
130:140 
130:140 
view
8 x 2 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayRolloutUpdateV3
googleutil.ts
googleutil.ts
111:120 
111:120 
view
6 x 3 Tasks/GooglePlayPromoteV2
Tasks/GooglePlayRolloutUpdateV3
Tasks/GooglePlayStatusUpdateV2
googleutil.ts
googleutil.ts
googleutil.ts
196:202 
192:198 
138:144 
view