facebookincubator / FBX2glTF
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
  • 1% duplication:
    • 4,859 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 88 duplicated lines
  • 15 duplicates
system1% (88 lines)
Duplication per Extension
cpp1% (48 lines)
yml44% (34 lines)
hpp<1% (6 lines)
Duplication per Component (primary)
ROOT18% (34 lines)
src/fbx2% (30 lines)
src/raw1% (12 lines)
src/gltf/properties1% (12 lines)
npm/fbx2gltf0% (0 lines)
src0% (0 lines)
src/fbx/materials0% (0 lines)
src/gltf0% (0 lines)
src/utils0% (0 lines)
Longest Duplicates
The list of 15 longest duplicates.
See data for all 15 duplicates...
Size#FoldersFilesLinesCode
12 x 2 ROOT
ROOT
43:57 (15%)
75:89 (15%)
view
10 x 2 ROOT
ROOT
11:22 (13%)
75:86 (13%)
view
10 x 2 ROOT
ROOT
11:22 (13%)
43:54 (13%)
view
6 x 2 src/fbx
src/fbx
315:320 (<1%)
329:334 (<1%)
view
6 x 2 src/fbx
src/fbx
322:327 (<1%)
384:389 (<1%)
view
6 x 2 src/fbx
src/fbx
315:320 (<1%)
384:389 (<1%)
view
6 x 2 src/fbx
src/fbx
384:389 (<1%)
394:399 (<1%)
view
6 x 2 src/fbx
src/fbx
329:334 (<1%)
384:389 (<1%)
view
6 x 2 src/raw
src/raw
275:280 (1%)
385:390 (1%)
view
6 x 2 src/fbx
src/fbx
322:327 (<1%)
329:334 (<1%)
view
6 x 2 src/fbx
src/fbx
315:320 (<1%)
322:327 (<1%)
view
6 x 2 src/fbx
src/fbx
322:327 (<1%)
394:399 (<1%)
view
6 x 2 src/fbx
src/fbx
315:320 (<1%)
394:399 (<1%)
view
6 x 2 src/fbx
src/fbx
329:334 (<1%)
394:399 (<1%)
view
6 x 2 src/gltf/properties
src/gltf/properties
123:132 (6%)
93:102 (9%)
view