microsoft / franceconnect-service-provider-dotnet-webapp-aspnetcore
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
  • 23% duplication:
    • 2,181 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 521 duplicated lines
  • 40 duplicates
system23% (521 lines)
Duplication per Extension
cs33% (460 lines)
cshtml9% (61 lines)
Duplication per Component (primary)
Source/WebApp-Service-Provider-DotNet/Migrations69% (392 lines)
Source/WebApp-Service-Provider-DotNet/ViewModels48% (68 lines)
Source/WebApp-Service-Provider-DotNet/Views9% (61 lines)
ROOT0% (0 lines)
Source/WebApp-Service-Provider-DotNet0% (0 lines)
Source/WebApp-Service-Provider-DotNet/Controllers0% (0 lines)
Source/WebApp-Service-Provider-DotNet/Helpers0% (0 lines)
Source/WebApp-Service-Provider-DotNet/Models0% (0 lines)
Source/WebApp-Service-Provider-DotNet/Services0% (0 lines)
Source/WebApp-Service-Provider-DotNet/wwwroot0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 40 duplicates...
Size#FoldersFilesLinesCode
187 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
20210929141814_InitialCreate.Designer.cs
ApplicationDbContextModelSnapshot.cs
20:290 (96%)
18:288 (97%)
view
13 x 2 Source/WebApp-Service-Pr...tNet/ViewModels/Account
Source/WebApp-Service-Pr...tNet/ViewModels/Account
RegisterViewModel.cs
ResetPasswordViewModel.cs
11:25 (44%)
10:24 (81%)
view
12 x 2 Source/WebApp-Service-Pr...tNet/ViewModels/Account
Source/WebApp-Service-Pr...tNet/ViewModels/Account
ExternalLoginConfirmationViewModel.cs
RegisterViewModel.cs
21:35 (54%)
30:44 (41%)
view
11 x 2 Source/WebApp-Service-Pr...er-DotNet/Views/Account
Source/WebApp-Service-Pr...er-DotNet/Views/Account
cshtml
Login.cshtml
Register.cshtml
16:28 (22%)
15:27 (16%)
view
9 x 2 Source/WebApp-Service-Provider-DotNet/Views/Manage
Source/WebApp-Service-Provider-DotNet/Views/Manage
cshtml
ChangePassword.cshtml
SetPassword.cshtml
19:29 (32%)
15:25 (37%)
view
9 x 2 Source/WebApp-Service-Pr...otNet/ViewModels/Manage
Source/WebApp-Service-Pr...otNet/ViewModels/Manage
ChangePasswordViewModel.cs
SetPasswordViewModel.cs
16:25 (60%)
11:20 (81%)
view
8 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
20210929141814_InitialCreate.Designer.cs
ApplicationDbContextModelSnapshot.cs
56:66 (4%)
79:89 (4%)
view
8 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
20210929141814_InitialCreate.Designer.cs
20210929141814_InitialCreate.Designer.cs
56:66 (4%)
81:91 (4%)
view
8 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
ApplicationDbContextModelSnapshot.cs
ApplicationDbContextModelSnapshot.cs
54:64 (4%)
79:89 (4%)
view
8 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
20210929141814_InitialCreate.Designer.cs
ApplicationDbContextModelSnapshot.cs
81:91 (4%)
54:64 (4%)
view
7 x 2 Source/WebApp-Service-Provider-DotNet/Views/Data
Source/WebApp-Service-Provider-DotNet/Views/Manage
cshtml
_CustomResourcePartial.cshtml
PivotIdentity.cshtml
3:11 (53%)
8:16 (19%)
view
7 x 2 Source/WebApp-Service-Provider-DotNet/Views/Data
Source/WebApp-Service-Provider-DotNet/Views/Manage
cshtml
_DgfipResourcePartial.cshtml
PivotIdentity.cshtml
3:11 (31%)
8:16 (19%)
view
7 x 2 Source/WebApp-Service-Provider-DotNet/Views/Data
Source/WebApp-Service-Provider-DotNet/Views/Data
cshtml
_CustomResourcePartial.cshtml
_DgfipResourcePartial.cshtml
3:11 (53%)
3:11 (31%)
view
6 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
ApplicationDbContextModelSnapshot.cs
ApplicationDbContextModelSnapshot.cs
249:254 (3%)
273:278 (3%)
view
6 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
20210929141814_InitialCreate.Designer.cs
ApplicationDbContextModelSnapshot.cs
260:265 (3%)
282:287 (3%)
view
6 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
20210929141814_InitialCreate.cs
20210929141814_InitialCreate.cs
92:98 (3%)
136:142 (3%)
view
6 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
ApplicationDbContextModelSnapshot.cs
ApplicationDbContextModelSnapshot.cs
249:254 (3%)
258:263 (3%)
view
6 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
20210929141814_InitialCreate.Designer.cs
ApplicationDbContextModelSnapshot.cs
275:280 (3%)
282:287 (3%)
view
6 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
20210929141814_InitialCreate.cs
20210929141814_InitialCreate.cs
92:98 (3%)
112:118 (3%)
view
6 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
ApplicationDbContextModelSnapshot.cs
ApplicationDbContextModelSnapshot.cs
249:254 (3%)
282:287 (3%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
201 x 2 Source/WebApp-Service-Provider-DotNet/Migrations
Source/WebApp-Service-Provider-DotNet/Migrations
20210929141814_InitialCreate.Designer.cs
ApplicationDbContextModelSnapshot.cs
18:291 
16:289 
view
6 x 2 Source/WebApp-Service-Provider-DotNet/Controllers
Source/WebApp-Service-Provider-DotNet/Controllers
AccountController.cs
ManageController.cs
361:367 
251:257 
view