microsoft / donuts.node
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
  • 2% duplication:
    • 2,746 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 82 duplicated lines
  • 7 duplicates
system2% (82 lines)
Duplication per Extension
js3% (82 lines)
Duplication per Component (primary)
core7% (63 lines)
remote1% (12 lines)
core/logging3% (7 lines)
ipc0% (0 lines)
modularity0% (0 lines)
ROOT0% (0 lines)
remote/pattern0% (0 lines)
remote/proxy0% (0 lines)
settings0% (0 lines)
weak0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
11 x 2 core
core
fileSystem.js
fileSystem.js
33:51 (4%)
248:266 (4%)
view
8 x 2 core
core
fileSystem.js
fileSystem.js
463:471 (3%)
484:492 (3%)
view
7 x 2 core/logging
core
log.js
utils.js
56:62 (5%)
627:633 (2%)
view
6 x 2 core
core
utils.js
utils.js
619:624 (1%)
628:633 (1%)
view
6 x 2 remote
remote
object-remoting-proxy.js
object-remoting-proxy.js
363:374 (3%)
394:405 (3%)
view
6 x 2 core
core
fileSystem.js
fileSystem.js
74:83 (2%)
328:337 (2%)
view
6 x 2 core/logging
core
log.js
utils.js
57:62 (4%)
619:624 (1%)
view