microsoft / franceconnect-identity-provider-dotnet-webapi-aspnetcore
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 127 units with 2,182 lines of code in units (45.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (28 lines of code)
    • 126 very simple units (2,154 lines of code)
0% | 0% | 0% | 1% | 98%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cs0% | 0% | 0% | 1% | 98%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source/WebApp-IdentityProvider-MFA/Areas/Identity0% | 0% | 0% | 2% | 97%
Source/WebApp-IdentityProvider-MFA/Migrations0% | 0% | 0% | 0% | 100%
Source/WebApp-IdentityProvider-MFA/Services0% | 0% | 0% | 0% | 100%
Source/WebApp-IdentityProvider-MFA/wwwroot/js0% | 0% | 0% | 0% | 100%
Source/WebApp-IdentityProvider-MFA/Services/FIDO20% | 0% | 0% | 0% | 100%
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%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async Task OnGetAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/ConfirmEmailChange.cshtml.cs
28 7 3
public async Task OnGetAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/ConfirmEmail.cshtml.cs
16 5 2
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Login.cshtml.cs
28 5 1
public async Task OnGetAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Login2FaChoice.cshtml.cs
19 5 2
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/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 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/Manage/DeletePersonalData.cshtml.cs
26 5 0
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/EnableFIDO2.cshtml.cs
32 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 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/ResetPassword.cshtml.cs
22 5 0
async function handleMfaSignInSubmit()
in Source/WebApp-IdentityProvider-MFA/wwwroot/js/mfa.login.js
20 5 1
async function handleMfaSignInSubmit()
in Source/WebApp-IdentityProvider-MFA/wwwroot/js/mfa.register.js
20 5 1
public async Task OnPostAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/ForgotPassword.cshtml.cs
24 4 0
public async Task OnPostChangeEmailAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/Manage/Email.cshtml.cs
34 4 0
public async Task OnGetAsync()
in Source/WebApp-IdentityProvider-MFA/Areas/Identity/Pages/Account/RegisterConfirmation.cshtml.cs
27 4 2
public async Task RegisterCredentialAsync()
in Source/WebApp-IdentityProvider-MFA/Services/FIDO2TwoFactorProvider.cs
22 4 3