microsoft / vscode-docker
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
  • 40% duplication:
    • 19,893 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 8,112 duplicated lines
  • 7,541 duplicates
system40% (8,112 lines)
Duplication per Extension
html83% (7,839 lines)
ts2% (273 lines)
Duplication per Component (primary)
ROOT83% (7,839 lines)
src/tree4% (113 lines)
src/docker3% (46 lines)
src9% (32 lines)
src/tasks3% (30 lines)
src/utils2% (26 lines)
src/scaffolding3% (26 lines)
resources/netCore0% (0 lines)
resources/python0% (0 lines)
src/commands0% (0 lines)
src/debugging0% (0 lines)
src/telemetry0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 7,541 duplicates...
Size#FoldersFilesLinesCode
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
87:295 (1%)
514:722 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
87:295 (1%)
940:1148 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
87:295 (1%)
1153:1361 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
2005:2214 (1%)
2866:3075 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
2219:2428 (1%)
2439:2648 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
2005:2214 (1%)
2439:2648 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
301:509 (1%)
1792:2000 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
727:935 (1%)
2219:2428 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
727:935 (1%)
2005:2214 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
301:509 (1%)
514:722 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
301:509 (1%)
940:1148 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
301:509 (1%)
1153:1361 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
301:509 (1%)
2653:2861 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
2219:2428 (1%)
2866:3075 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
940:1148 (1%)
1792:2000 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
1153:1361 (1%)
2653:2861 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
87:295 (1%)
2653:2861 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
1792:2000 (1%)
2653:2861 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
514:722 (1%)
1792:2000 (1%)
view
173 x 2 ROOT
ROOT
NOTICE.html
NOTICE.html
940:1148 (1%)
1153:1361 (1%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
13 x 2 src/tree
src/tree
ToolTipTreeItem.ts
ToolTipTreeItem.ts
10:31 
38:59 
view
13 x 2 src/tree/help
src/tree/help
HelpsTreeItem.ts
HelpsTreeItem.ts
75:89 
103:117 
view
9 x 2 src/tree/help
src/tree/help
HelpsTreeItem.ts
HelpsTreeItem.ts
39:49 
51:61 
view
6 x 2 src/tree
src/tree/contexts
LocalRootTreeItemBase.ts
ContextsTreeItem.ts
271:277 
77:83 
view
6 x 2 src/utils
src/utils
quickPickFile.ts
quickPickFile.ts
135:142 
144:151 
view