microsoft / vscode-service-fabric-reliable-services
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
  • 21% duplication:
    • 883 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 194 duplicated lines
  • 49 duplicates
system21% (194 lines)
Duplication per Extension
ts21% (194 lines)
Duplication per Component (primary)
src/commands41% (163 lines)
src/yo/prompts20% (31 lines)
src/configureWorkspace0% (0 lines)
src0% (0 lines)
src/yo0% (0 lines)
src/yo/utils0% (0 lines)
src/yo/yo0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 49 duplicates...
Size#FoldersFilesLinesCode
23 x 2 src/commands
src/commands
publish-application.ts
upgrade-application.ts
23:51 (30%)
29:57 (27%)
view
21 x 2 src/commands
src/commands
publish-application.ts
remove-application.ts
23:49 (27%)
65:91 (28%)
view
21 x 2 src/commands
src/commands
remove-application.ts
upgrade-application.ts
65:91 (28%)
29:55 (25%)
view
11 x 2 src/commands
src/commands
publish-application.ts
upgrade-application.ts
58:70 (14%)
64:76 (13%)
view
10 x 2 src/yo/prompts
src/yo/prompts
expand.ts
list.ts
13:24 (58%)
21:33 (41%)
view
9 x 2 src/commands
src/commands
publish-application.ts
remove-application.ts
3:15 (11%)
3:15 (12%)
view
9 x 2 src/commands
src/commands
deploy-application.ts
remove-application.ts
3:15 (25%)
3:15 (12%)
view
9 x 2 src/commands
src/commands
deploy-application.ts
upgrade-application.ts
3:15 (25%)
3:15 (10%)
view
9 x 2 src/commands
src/commands
deploy-application.ts
publish-application.ts
3:15 (25%)
3:15 (11%)
view
9 x 2 src/yo/prompts
src/yo/prompts
confirm.ts
expand.ts
17:28 (52%)
17:28 (52%)
view
9 x 2 src/commands
src/commands
remove-application.ts
upgrade-application.ts
3:15 (12%)
3:15 (10%)
view
9 x 2 src/commands
src/commands
publish-application.ts
upgrade-application.ts
3:15 (11%)
3:15 (10%)
view
8 x 2 src/commands
src/commands
build-application.ts
publish-application.ts
7:17 (8%)
5:15 (10%)
view
8 x 2 src/commands
src/commands
build-application.ts
upgrade-application.ts
7:17 (8%)
5:15 (9%)
view
8 x 2 src/commands
src/commands
deploy-application.ts
publish-application.ts
20:29 (22%)
40:49 (10%)
view
8 x 2 src/commands
src/commands
deploy-application.ts
upgrade-application.ts
20:29 (22%)
46:55 (9%)
view
8 x 2 src/commands
src/commands
deploy-application.ts
remove-application.ts
20:29 (22%)
82:91 (10%)
view
8 x 2 src/commands
src/commands
deploy-application.ts
publish-application.ts
42:50 (22%)
77:85 (10%)
view
8 x 2 src/commands
src/commands
build-application.ts
deploy-application.ts
7:17 (8%)
5:15 (22%)
view
8 x 2 src/commands
src/commands
build-application.ts
remove-application.ts
7:17 (8%)
5:15 (10%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
10 x 2 src/commands
src/commands
deploy-application.ts
remove-application.ts
41:51 
99:109 
view
6 x 4 src/commands
src/commands
src/commands
src/commands
deploy-application.ts
publish-application.ts
remove-application.ts
upgrade-application.ts
21:27 
26:32 
49:55 
32:38 
view