reactjs / React.NET
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
  • 9% duplication:
    • 7,197 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 710 duplicated lines
  • 66 duplicates
system9% (710 lines)
Duplication per Extension
cs6% (281 lines)
jsx39% (256 lines)
ps184% (56 lines)
tsx54% (53 lines)
css100% (52 lines)
html5% (12 lines)
Duplication per Component (primary)
src/React.Core4% (148 lines)
src/React.Template19% (131 lines)
src/React.Sample.Owin51% (107 lines)
src/React.Sample.Mvc439% (96 lines)
src/React.Sample.Cassette56% (94 lines)
src/React.MSBuild37% (56 lines)
src/React.AspNet26% (24 lines)
src/React.Router9% (18 lines)
src/React.AspNet.Middleware7% (18 lines)
site/jekyll<1% (12 lines)
src/React.Sample.ConsoleApp15% (6 lines)
ROOT0% (0 lines)
webhooks0% (0 lines)
src/System.Web.Optimization.React0% (0 lines)
src/React.Owin0% (0 lines)
src0% (0 lines)
src/Cassette.React0% (0 lines)
src/React.Web0% (0 lines)
src/React.Web.Mvc40% (0 lines)

Duplication Between Components (50+ lines)

G src/React.Sample.Cassette src/React.Sample.Cassette src/React.Sample.Owin src/React.Sample.Owin src/React.Sample.Cassette--src/React.Sample.Owin 188 src/React.Template src/React.Template src/React.Sample.Cassette--src/React.Template 52 src/React.Sample.Owin--src/React.Template 78 src/React.Sample.Mvc4 src/React.Sample.Mvc4 src/React.Sample.Mvc4--src/React.Sample.Owin 68 src/React.Sample.Mvc4--src/React.Template 186

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 66 duplicates...
Size#FoldersFilesLinesCode
53 x 2 src/React.Sample.Cassette/Content
src/React.Sample.Owin/Content
51:113 (55%)
56:118 (53%)
view
28 x 2 src/React.MSBuild/tools
src/React.MSBuild/tools
1:32 (84%)
1:32 (84%)
view
23 x 2 src/React.Sample.Mvc4/Controllers
src/React.Template/reactnet-webpack/Controllers
44:77 (42%)
7:40 (45%)
view
22 x 2 src/React.Sample.Mvc4/Content
src/React.Template/react...ent/components/comments
34:57 (22%)
23:46 (20%)
view
13 x 2 src/React.Sample.Cassette/Content
src/React.Sample.Owin/Content
1:23 (100%)
1:23 (100%)
view
13 x 2 src/React.Sample.Mvc4/Content
src/React.Template/reactnet-webpack/wwwroot
1:23 (100%)
1:23 (100%)
view
13 x 2 src/React.Sample.Cassette/Content
src/React.Template/reactnet-webpack/wwwroot
1:23 (100%)
1:23 (100%)
view
13 x 2 src/React.Template/react...pack/Content/components
src/React.Template/react...pack/Content/components
6:20 (48%)
5:19 (44%)
view
13 x 2 src/React.Sample.Mvc4/Content
src/React.Sample.Owin/Content
1:23 (100%)
1:23 (100%)
view
13 x 2 src/React.Sample.Cassette/Content
src/React.Sample.Mvc4/Content
1:23 (100%)
1:23 (100%)
view
13 x 2 src/React.Sample.Owin/Content
src/React.Template/reactnet-webpack/wwwroot
1:23 (100%)
1:23 (100%)
view
12 x 2 src/React.AspNet
src/React.AspNet
65:77 (13%)
116:128 (13%)
view
12 x 2 src/React.Sample.Cassette/Content
src/React.Sample.Owin/Content
20:33 (12%)
18:31 (12%)
view
10 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
829:841 (<1%)
867:879 (<1%)
view
10 x 2 src/React.Sample.Cassette/Content
src/React.Sample.Owin/Content
1:12 (10%)
1:11 (10%)
view
10 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
801:813 (<1%)
829:841 (<1%)
view
10 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
734:746 (<1%)
867:879 (<1%)
view
10 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
734:746 (<1%)
829:841 (<1%)
view
10 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
734:746 (<1%)
801:813 (<1%)
view
10 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
734:746 (<1%)
762:774 (<1%)
view
10 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
762:774 (<1%)
867:879 (<1%)
view
10 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
762:774 (<1%)
829:841 (<1%)
view
10 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
801:813 (<1%)
867:879 (<1%)
view
10 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
762:774 (<1%)
801:813 (<1%)
view
9 x 2 src/React.Router
src/React.Router
56:64 (14%)
88:96 (14%)
view
8 x 2 src/React.Sample.Mvc4/Content
src/React.Template/react...ent/components/comments
62:70 (8%)
51:59 (7%)
view
8 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
711:718 (<1%)
767:774 (<1%)
view
8 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
711:718 (<1%)
834:841 (<1%)
view
8 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
711:718 (<1%)
806:813 (<1%)
view
8 x 2 src/React.Sample.Mvc4/Content
src/React.Sample.Owin/Content
108:116 (8%)
101:109 (8%)
view
8 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
711:718 (<1%)
872:879 (<1%)
view
8 x 2 src/React.Sample.Cassette/Content
src/React.Sample.Mvc4/Content
96:104 (8%)
108:116 (8%)
view
8 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
711:718 (<1%)
739:746 (<1%)
view
7 x 2 src/React.Sample.Owin
src/React.Template/reactnet-webpack/Controllers
50:57 (17%)
20:26 (13%)
view
7 x 2 src/React.Sample.Mvc4/Content
src/React.Template/react...ent/components/comments
106:113 (7%)
102:109 (6%)
view
7 x 2 src/React.Sample.Owin/Content
src/React.Template/react...ent/components/comments
2:8 (7%)
2:8 (6%)
view
7 x 2 src/React.Sample.Mvc4/Controllers
src/React.Template/reactnet-webpack/Controllers
20:34 (12%)
72:84 (13%)
view
7 x 2 src/React.Sample.Mvc4/Content
src/React.Template/react...ent/components/comments
89:96 (7%)
85:92 (6%)
view
7 x 2 src/React.Sample.Mvc4/Controllers
src/React.Sample.Owin
57:63 (12%)
50:57 (17%)
view
7 x 2 src/React.Sample.Cassette/Content
src/React.Template/react...ent/components/comments
2:8 (7%)
2:8 (6%)
view
6 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
1236:1243 (<1%)
1306:1313 (<1%)
view
6 x 2 src/React.AspNet.Middleware
src/React.Core
47:71 (27%)
39:63 (37%)
view
6 x 2 src/React.Sample.Cassette/Content
src/React.Sample.ConsoleApp
3:8 (6%)
3:8 (37%)
view
6 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
384:390 (<1%)
713:718 (<1%)
view
6 x 2 src/React.Sample.ConsoleApp
src/React.Sample.Owin/Content
3:8 (37%)
3:8 (6%)
view
6 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
384:390 (<1%)
874:879 (<1%)
view
6 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
3728:3738 (<1%)
3751:3761 (<1%)
view
6 x 2 src/React.Sample.Owin
src/React.Template/reactnet-webpack/Controllers
21:29 (15%)
72:81 (11%)
view
6 x 2 src/React.Sample.Cassette/Content
src/React.Sample.Owin/Content
35:40 (6%)
33:38 (6%)
view
6 x 2 src/React.Core/TinyIoC
src/React.Core/TinyIoC
384:390 (<1%)
836:841 (<1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
19 x 2 src/React.Template/reactnet-webpack/Controllers
src/React.Sample.Mvc4/Controllers
14:36 
51:73 
view
9 x 2 src/Cassette.React
src/React.MSBuild
22:32 
50:60 
view