microsoft / maker.js
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:
    • 9,344 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 389 duplicated lines
  • 16 duplicates
system4% (389 lines)
Duplication per Extension
html69% (215 lines)
ts1% (146 lines)
js13% (28 lines)
Duplication per Component (primary)
maker.js/debug38% (224 lines)
playground/src2% (56 lines)
fonts57% (38 lines)
maker.js/src/core<1% (38 lines)
playground/src/worker7% (21 lines)
maker.js/src/models1% (12 lines)
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
59 x 2 packages/maker.js/debug
packages/maker.js/debug
thumbnails.html
viewer.html
41:103 (54%)
12:74 (51%)
view
38 x 2 packages/maker.js/debug
packages/maker.js/debug
simple.html
thumbnails.html
18:61 (44%)
36:79 (34%)
view
36 x 2 packages/maker.js/debug
packages/maker.js/debug
simple.html
viewer.html
23:61 (41%)
12:50 (31%)
view
23 x 2 packages/maker.js/debug
packages/maker.js/debug
simple.html
thumbnails.html
63:86 (26%)
81:104 (21%)
view
22 x 2 packages/maker.js/debug
packages/maker.js/debug
simple.html
viewer.html
63:85 (25%)
52:74 (19%)
view
19 x 2 packages/fonts
packages/fonts
gen.js
gen.ts
6:24 (54%)
5:28 (61%)
view
17 x 2 packages/maker.js/debug
packages/maker.js/debug
simple.html
thumbnails.html
1:18 (19%)
1:19 (15%)
view
11 x 2 packages/playground/src
packages/playground/src/worker
require-iframe.ts
render-worker.ts
118:133 (4%)
81:96 (8%)
view
10 x 2 packages/playground/src
packages/playground/src/worker
require-iframe.ts
render-worker.ts
167:180 (4%)
111:125 (7%)
view
9 x 2 packages/maker.js/debug
packages/playground/src
viewer.js
playground.ts
193:206 (5%)
233:246 (<1%)
view
7 x 2 packages/maker.js/src/core
packages/maker.js/src/core
fillet.ts
fillet.ts
352:363 (2%)
441:453 (2%)
view
7 x 2 packages/playground/src
packages/playground/src
playground.ts
playground.ts
1334:1343 (<1%)
1364:1373 (<1%)
view
6 x 2 packages/maker.js/src/core
packages/maker.js/src/core
openjscad.ts
openjscad.ts
312:317 (2%)
397:402 (2%)
view
6 x 2 packages/maker.js/src/core
packages/maker.js/src/core
fillet.ts
fillet.ts
470:475 (2%)
494:499 (2%)
view
6 x 2 packages/playground/src
packages/playground/src
playground.ts
playground.ts
352:358 (<1%)
365:371 (<1%)
view
6 x 2 packages/maker.js/src/models
packages/maker.js/src/models
OvalArc.ts
Slot.ts
27:33 (13%)
19:25 (14%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
12 x 2 packages/playground/src
packages/playground/src/worker
require-iframe.ts
render-worker.ts
118:134 
81:97 
view