microsoft / vscode-eslint
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
  • 10% duplication:
    • 4,128 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 433 duplicated lines
  • 33 duplicates
system10% (433 lines)
Duplication per Extension
ts5% (219 lines)
js86% (64 lines)
vue100% (60 lines)
yml73% (60 lines)
jsx100% (18 lines)
html100% (12 lines)
Duplication per Component (primary)
server/src5% (134 lines)
client/src6% (85 lines)
playgrounds/7.0100% (51 lines)
playgrounds/8.0100% (51 lines)
build/azure-pipelines70% (36 lines)
playgrounds/7.0/subDir100% (16 lines)
playgrounds/8.0/subDir100% (16 lines)
build/azure-pipelines/linux100% (12 lines)
build/azure-pipelines/win3263% (12 lines)
playgrounds/7.0/build100% (7 lines)
playgrounds/8.0/build100% (7 lines)
playgrounds/noLib42% (6 lines)
playgrounds/noWD/src0% (0 lines)
playgrounds/ts0% (0 lines)

Duplication Between Components (50+ lines)

G client/src client/src server/src server/src client/src--server/src 170 playgrounds/7.0 playgrounds/7.0 playgrounds/8.0 playgrounds/8.0 playgrounds/7.0--playgrounds/8.0 102

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 33 duplicates...
Size#FoldersFilesLinesCode
31 x 2 client/src
server/src
extension.ts
eslintServer.ts
227:287 (2%)
65:123 (1%)
view
30 x 2 playgrounds/7.0
playgrounds/8.0
test.vue
test.vue
1:32 (100%)
1:32 (100%)
view
19 x 2 client/src
server/src
extension.ts
eslintServer.ts
65:95 (1%)
128:158 (1%)
view
12 x 2 build/azure-pipelines/linux
build/azure-pipelines/win32
build.yml
build.yml
1:14 (100%)
1:14 (63%)
view
11 x 2 client/src
server/src
extension.ts
eslintServer.ts
187:202 (1%)
198:213 (<1%)
view
9 x 2 build/azure-pipelines
build/azure-pipelines
pre-release.yml
release.yml
19:28 (37%)
22:31 (33%)
view
9 x 2 playgrounds/7.0/subDir
playgrounds/8.0/subDir
test.jsx
test.jsx
1:10 (100%)
1:10 (100%)
view
9 x 2 build/azure-pipelines
build/azure-pipelines
pre-release.yml
release.yml
7:17 (37%)
10:20 (33%)
view
8 x 2 client/src
server/src
extension.ts
eslintServer.ts
157:166 (<1%)
175:184 (<1%)
view
8 x 2 server/src
server/src
diff.ts
diff.ts
718:725 (1%)
747:754 (1%)
view
8 x 2 client/src
server/src
extension.ts
eslintServer.ts
206:213 (<1%)
217:224 (<1%)
view
8 x 2 server/src
server/src
diff.ts
diff.ts
747:754 (1%)
804:811 (1%)
view
8 x 2 server/src
server/src
diff.ts
diff.ts
718:725 (1%)
804:811 (1%)
view
8 x 2 playgrounds/7.0
playgrounds/8.0
app.js
app.js
1:11 (100%)
1:11 (100%)
view
8 x 2 client/src
server/src
extension.ts
eslintServer.ts
113:120 (<1%)
162:169 (<1%)
view
7 x 2 server/src
server/src
diff.ts
diff.ts
804:810 (1%)
839:845 (1%)
view
7 x 2 playgrounds/7.0/subDir
playgrounds/8.0/build
sub.js
build.js
1:10 (100%)
1:10 (100%)
view
7 x 2 playgrounds/8.0/build
playgrounds/8.0/subDir
build.js
sub.js
1:10 (100%)
1:10 (100%)
view
7 x 2 playgrounds/7.0/subDir
playgrounds/8.0/subDir
sub.js
sub.js
1:10 (100%)
1:10 (100%)
view
7 x 2 playgrounds/7.0
playgrounds/8.0
test.js
test.js
1:10 (100%)
1:10 (100%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 playgrounds/7.0
playgrounds/8.0
test.js
test.js
1:7 
1:7 
view