microsoft / vscode-cosmosdb
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
  • 37% duplication:
    • 12,608 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 4,737 duplicated lines
  • 4,790 duplicates
system37% (4,737 lines)
Duplication per Extension
html81% (4,298 lines)
ts6% (439 lines)
Duplication per Component (primary)
ROOT80% (4,298 lines)
src/mongo11% (395 lines)
src/postgres1% (30 lines)
src/docdb1% (7 lines)
src/graph4% (7 lines)
build0% (0 lines)
grammar0% (0 lines)
src0% (0 lines)
src/commands0% (0 lines)
src/table0% (0 lines)
src/tree0% (0 lines)
src/utils0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 4,790 duplicates...
Size#FoldersFilesLinesCode
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
330:537 (3%)
755:963 (3%)
view
160 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
330:517 (3%)
542:729 (3%)
view
160 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
542:729 (3%)
755:942 (3%)
view
159 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
92:278 (3%)
7076:7262 (3%)
view
153 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
91:271 (2%)
330:510 (2%)
view
153 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
91:271 (2%)
542:722 (2%)
view
153 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
91:271 (2%)
755:935 (2%)
view
152 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
331:510 (2%)
7076:7255 (2%)
view
152 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
543:722 (2%)
7076:7255 (2%)
view
152 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
756:935 (2%)
7076:7255 (2%)
view
45 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
5722:5778 (<1%)
5781:5837 (<1%)
view
44 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
5723:5778 (<1%)
6227:6283 (<1%)
view
44 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
5782:5837 (<1%)
6227:6283 (<1%)
view
43 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4389:4447 (<1%)
4450:4508 (<1%)
view
43 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4267:4325 (<1%)
4450:4508 (<1%)
view
43 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4267:4325 (<1%)
4389:4447 (<1%)
view
37 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4335:4386 (<1%)
4396:4447 (<1%)
view
37 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4335:4386 (<1%)
4457:4508 (<1%)
view
37 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4213:4264 (<1%)
4335:4386 (<1%)
view
37 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4213:4264 (<1%)
4274:4325 (<1%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
52 x 2 src/mongo/services
src/mongo/services
completionItemProvider.ts
completionItemProvider.ts
249:301 
321:373 
view
9 x 2 src/postgres/tree
src/postgres/tree
PostgresFunctionTreeItem.ts
PostgresStoredProcedureTreeItem.ts
22:31 
22:31 
view
7 x 2 src
src
constants.ts
constants.ts
22:29 
31:38 
view
6 x 2 src/mongo/grammar
src/mongo/grammar
mongoParser.ts
mongoParser.ts
1008:1014 
1086:1092 
view