microsoft / satcheljs
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
  • 6% duplication:
    • 712 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 44 duplicated lines
  • 5 duplicates
system6% (44 lines)
Duplication per Extension
ts6% (44 lines)
Duplication per Component (primary)
src/legacy8% (26 lines)
src/legacy/promise10% (6 lines)
src/legacy/stitch19% (6 lines)
src/legacy/trace33% (6 lines)
ROOT0% (0 lines)
src0% (0 lines)
src/interfaces0% (0 lines)
src/legacy/react0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
8 x 2 src/legacy
src/legacy
createUndo.ts
createUndo.ts
60:68 (5%)
105:113 (5%)
view
6 x 2 src/legacy/promise
src/legacy/trace
promiseMiddleware.ts
trace.ts
15:20 (26%)
8:13 (35%)
view
6 x 2 src/legacy/promise
src/legacy/stitch
promiseMiddleware.ts
stitch.ts
15:20 (26%)
15:20 (20%)
view
6 x 2 src/legacy
src/legacy
createUndo.ts
createUndo.ts
56:61 (4%)
122:127 (4%)
view
6 x 2 src/legacy/stitch
src/legacy/trace
stitch.ts
trace.ts
15:20 (20%)
8:13 (35%)
view