microsoft / franceconnect-identity-provider-dotnet-webapi-aspnetcore
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 127 units with 2,182 lines of code in units (45.2% of code).
    • 3 very long units (645 lines of code)
    • 0 long units (0 lines of code)
    • 20 medium size units (590 lines of code)
    • 32 small units (483 lines of code)
    • 72 very small units (464 lines of code)
29% | 0% | 27% | 22% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs31% | 0% | 28% | 18% | 21%
js0% | 0% | 0% | 86% | 13%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Source/WebApp-IdentityProvider-MFA/Migrations97% | 0% | 0% | 2% | 0%
Source/WebApp-IdentityProvider-MFA/Areas/Identity0% | 0% | 44% | 26% | 29%
Source/WebApp-IdentityProvider-MFA/Services0% | 0% | 43% | 29% | 27%
Source/WebApp-IdentityProvider-MFA/wwwroot/js0% | 0% | 0% | 86% | 13%
Source/WebApp-IdentityProvider-MFA/Services/FIDO20% | 0% | 0% | 30% | 69%
Source/WebApp-IdentityProvider-MFA/Pages0% | 0% | 0% | 0% | 100%
Source/WebApp-IdentityProvider-MFA/Data0% | 0% | 0% | 0% | 100%
Source/WebApp-IdentityProvider-MFA0% | 0% | 0% | 0% | 100%
Source/WebApp-IdentityProvider-MFA/Models0% | 0% | 0% | 0% | 100%
Source/WebApp-IdentityProvider-MFA/Pages/Shared0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected override void BuildTargetModel()
in Source/WebApp-IdentityProvider-MFA/Migrations/20211018132422_InitialCreate.Designer.cs
225 1 1
protected override void BuildModel()
in Source/WebApp-IdentityProvider-MFA/Migrations/ApplicationDbContextModelSnapshot.cs
225 1 1
protected override void Up()
in Source/WebApp-IdentityProvider-MFA/Migrations/20211018132422_InitialCreate.cs
195 1 1
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Register.cshtml.cs
48 5 1
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Manage/EnableAuthenticator.cshtml.cs
36 5 0
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Manage/Index.cshtml.cs
35 5 0
public async Task OnPostChangeEmailAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Manage/Email.cshtml.cs
34 4 0
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/LoginWithAuthenticator.cshtml.cs
32 5 2
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Manage/EnableFIDO2.cshtml.cs
32 5 0
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/LoginWithFIDO2.cshtml.cs
31 5 2
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/LoginWithRecoveryCode.cshtml.cs
31 5 1
public async Task OnPostSendVerificationEmailAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Manage/Email.cshtml.cs
29 3 0
public async Task OnGetAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/ConfirmEmailChange.cshtml.cs
28 7 3
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Login.cshtml.cs
28 5 1
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/ResendEmailConfirmation.cshtml.cs
28 3 0
public async Task BuildCredentialRegistrationOptionsAsync()
in Source/WebApp-IdentityProvider-MFA/Services/FIDO2TwoFactorProvider.cs
28 2 1
public async Task OnGetAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/RegisterConfirmation.cshtml.cs
27 4 2
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Manage/DeletePersonalData.cshtml.cs
26 5 0
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Manage/ChangePassword.cshtml.cs
25 5 0
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/ForgotPassword.cshtml.cs
24 4 0