reactjs / react-transition-group
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:
    • 2,056 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 135 duplicated lines
  • 10 duplicates
system6% (135 lines)
Duplication per Extension
js7% (135 lines)
Duplication per Component (primary)
stories/transitions25% (46 lines)
www/src/pages27% (45 lines)
ROOT33% (18 lines)
src1% (14 lines)
www/src/components13% (12 lines)
www0% (0 lines)
www/src/css0% (0 lines)
www/src/templates0% (0 lines)
stories0% (0 lines)
src/utils0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
17 x 2 stories/transitions
stories/transitions
45:61 (13%)
133:149 (13%)
view
15 x 2 www/src/pages
www/src/pages
7:21 (26%)
8:22 (23%)
view
15 x 2 www/src/pages
www/src/pages
7:21 (26%)
7:21 (36%)
view
15 x 2 www/src/pages
www/src/pages
7:21 (36%)
8:22 (23%)
view
12 x 2 www/src/components
www/src/pages
12:23 (19%)
9:20 (21%)
view
12 x 2 www/src/components
www/src/pages
12:23 (19%)
9:20 (29%)
view
12 x 2 www/src/components
www/src/pages
12:23 (19%)
10:21 (19%)
view
9 x 2 ROOT
ROOT
32:40 (17%)
50:58 (17%)
view
7 x 2 src
src
325:375 (3%)
525:573 (2%)
view
6 x 2 stories/transitions
stories/transitions
35:40 (21%)
35:40 (21%)
view