microsoft / node-pty
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
  • 4% duplication:
    • 1,944 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 84 duplicated lines
  • 5 duplicates
system4% (84 lines)
Duplication per Extension
yml67% (60 lines)
cc1% (12 lines)
gyp13% (12 lines)
Duplication per Component (primary)
ROOT39% (72 lines)
src/win2% (12 lines)
scripts0% (0 lines)
src0% (0 lines)
src/shared0% (0 lines)
src/unix0% (0 lines)
src/worker0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
20 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
10:29 (22%)
34:53 (22%)
view
20 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
34:53 (22%)
58:77 (22%)
view
20 x 2 ROOT
ROOT
azure-pipelines.yml
azure-pipelines.yml
10:29 (22%)
58:77 (22%)
view
6 x 2 src/win
src/win
conpty.cc
winpty.cc
386:392 (2%)
244:250 (3%)
view
6 x 2 ROOT
ROOT
gyp
binding.gyp
binding.gyp
58:63 (6%)
86:91 (6%)
view