microsoft / vscode-postgresql
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
  • 5% duplication:
    • 7,656 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 417 duplicated lines
  • 25 duplicates
system5% (417 lines)
Duplication per Extension
ts4% (293 lines)
js12% (77 lines)
html69% (47 lines)
Duplication per Component (primary)
src/views9% (225 lines)
src/models3% (73 lines)
tasks12% (57 lines)
ROOT12% (20 lines)
src/configurations19% (18 lines)
src/controllers<1% (12 lines)
src/prompts3% (12 lines)
localization/xliff0% (0 lines)
scripts0% (0 lines)
src/connectionconfig0% (0 lines)
src/constants0% (0 lines)
src/credentialstore0% (0 lines)
src0% (0 lines)
src/languageservice0% (0 lines)
src/utils0% (0 lines)

Duplication Between Components (50+ lines)

G src/models src/models src/views src/views src/models--src/views 122

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
30 x 2 src/models
src/views/htmlcontent/src/js
interfaces.ts
interfaces.ts
279:308 (18%)
12:41 (36%)
view
16 x 2 src/views/htmlcontent/src/html
src/views/htmlcontent/src/js/components
app.html
app.component.ts
6:21 (30%)
54:69 (2%)
view
13 x 2 src/views/htmlcontent/src/html
src/views/htmlcontent/src/js/components
contextmenu.component.html
contextmenu.component.ts
1:13 (100%)
17:29 (20%)
view
13 x 2 src/views/htmlcontent/src/js/components
src/views/htmlcontent/src/js/components
contextmenu.component.ts
messagescontextmenu.component.ts
60:77 (20%)
47:65 (27%)
view
10 x 2 src/models
src/views/htmlcontent/src/js
utils.ts
utils.ts
165:177 (5%)
1:13 (50%)
view
9 x 2 src/configurations
src/configurations
config.ts
extConfig.ts
32:48 (16%)
32:48 (23%)
view
9 x 2 src/views/htmlcontent/src/js
src/views/htmlcontent/src/js
slick.dragrowselector.ts
slick.dragrowselector.ts
110:120 (3%)
138:148 (3%)
view
9 x 2 src/models
src/views/htmlcontent/src/js
interfaces.ts
interfaces.ts
311:321 (5%)
69:79 (10%)
view
9 x 2 tasks
tasks
htmltasks.js
htmltasks.js
105:113 (4%)
125:133 (4%)
view
7 x 2 src/views
src/views
connectionUI.ts
connectionUI.ts
171:177 (1%)
329:335 (1%)
view
7 x 2 tasks
tasks
htmltasks.js
htmltasks.js
187:194 (3%)
198:205 (3%)
view
7 x 2 ROOT
ROOT
gulpfile.js
gulpfile.js
44:51 (5%)
64:71 (5%)
view
7 x 2 tasks
tasks
htmltasks.js
htmltasks.js
176:183 (3%)
187:194 (3%)
view
7 x 2 tasks
tasks
htmltasks.js
htmltasks.js
176:183 (3%)
198:205 (3%)
view
6 x 2 src/views/htmlcontent/src/js/components
src/views/htmlcontent/src/js/components
contextmenu.component.ts
messagescontextmenu.component.ts
86:95 (9%)
72:82 (12%)
view
6 x 2 src/views/htmlcontent/src/html
src/views/htmlcontent/src/js/components
app.html
app.component.ts
42:47 (11%)
90:95 (1%)
view
6 x 2 src/controllers
src/controllers
mainController.ts
mainController.ts
387:393 (1%)
398:404 (1%)
view
6 x 2 src/models
src/models
connectionStore.ts
connectionStore.ts
264:270 (2%)
287:293 (2%)
view
6 x 2 tasks
tasks
htmltasks.js
htmltasks.js
33:38 (2%)
45:50 (2%)
view
6 x 2 src/models/contracts
src/views/htmlcontent/src/js
queryExecute.ts
interfaces.ts
104:111 (9%)
44:51 (7%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 src/models
src/views/htmlcontent/src/js
utils.ts
utils.ts
165:178 
1:14 
view
9 x 2 src/views/htmlcontent/src/js/components
src/views/htmlcontent/src/js/components
contextmenu.component.ts
messagescontextmenu.component.ts
62:71 
50:59 
view