microsoft / vscode-windows-process-tree
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
  • 12% duplication:
    • 647 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 82 duplicated lines
  • 6 duplicates
system12% (82 lines)
Duplication per Extension
ts21% (82 lines)
Duplication per Component (primary)
lib21% (82 lines)
ROOT0% (0 lines)
src0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
12 x 2 lib
lib
test.ts
test.ts
282:293 (4%)
317:328 (4%)
view
10 x 2 lib
lib
test.ts
test.ts
294:303 (3%)
334:343 (3%)
view
9 x 2 lib
lib
test.ts
test.ts
88:98 (3%)
176:186 (3%)
view
8 x 2 lib
lib
test.ts
testWorker.ts
295:302 (2%)
7:14 (50%)
view
8 x 2 lib
lib
test.ts
testWorker.ts
335:342 (2%)
7:14 (50%)
view
6 x 2 lib
lib
test.ts
test.ts
49:55 (2%)
163:169 (2%)
view