microsoft / vscode-azurestorage
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
  • 47% duplication:
    • 7,419 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,487 duplicated lines
  • 2,344 duplicates
system47% (3,487 lines)
Duplication per Extension
html85% (3,369 lines)
ts3% (118 lines)
Duplication per Component (primary)
ROOT84% (3,369 lines)
src/tree/fileShare8% (24 lines)
src/storageExplorerLauncher20% (24 lines)
src/tree3% (20 lines)
src/tree/queue12% (14 lines)
src/tree/table13% (14 lines)
src2% (12 lines)
src/tree/blob2% (10 lines)
src/commands/api0% (0 lines)
src/commands/azCopy0% (0 lines)
src/commands/blob0% (0 lines)
src/commands0% (0 lines)
src/commands/fileShare0% (0 lines)
src/commands/openInFileExplorer0% (0 lines)
src/commands/queue0% (0 lines)
src/commands/table0% (0 lines)
src/tree/createWizard0% (0 lines)
src/utils0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 2,344 duplicates...
Size#FoldersFilesLinesCode
174 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
322:532 (4%)
535:745 (4%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
110:319 (4%)
324:532 (4%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
537:745 (4%)
750:958 (4%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
110:319 (4%)
750:958 (4%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
110:319 (4%)
537:745 (4%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
324:532 (4%)
750:958 (4%)
view
153 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
537:717 (3%)
963:1143 (3%)
view
153 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
750:930 (3%)
963:1143 (3%)
view
153 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
110:291 (3%)
963:1143 (3%)
view
153 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
324:504 (3%)
963:1143 (3%)
view
44 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4889:4944 (1%)
5047:5103 (1%)
view
43 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4232:4290 (1%)
4329:4387 (1%)
view
43 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4038:4096 (1%)
4135:4193 (1%)
view
43 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4038:4096 (1%)
4232:4290 (1%)
view
43 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4038:4096 (1%)
4329:4387 (1%)
view
43 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4135:4193 (1%)
4329:4387 (1%)
view
43 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
4135:4193 (1%)
4232:4290 (1%)
view
37 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
3984:4035 (<1%)
4045:4096 (<1%)
view
37 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
3984:4035 (<1%)
4142:4193 (<1%)
view
37 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
3984:4035 (<1%)
4239:4290 (<1%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
10 x 2 src/tree
src/tree
AttachedStorageAccountTreeItem.ts
StorageAccountTreeItem.ts
86:98 
234:246 
view
7 x 2 src/tree/blob
src/tree/fileShare
BlobContainerTreeItem.ts
FileShareTreeItem.ts
96:104 
79:87 
view
6 x 4 src/tree/blob
src/tree/fileShare
src/tree/queue
src/tree/table
BlobContainerGroupTreeItem.ts
FileShareGroupTreeItem.ts
QueueGroupTreeItem.ts
TableGroupTreeItem.ts
27:33 
31:37 
26:32 
27:33 
view