aws / aws-aspnet-cognito-identity-provider
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 140 units with 1,554 lines of code in units (74.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (35 lines of code)
    • 5 simple units (140 lines of code)
    • 134 very simple units (1,379 lines of code)
0% | 0% | 2% | 9% | 88%
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% | 2% | 9% | 88%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Amazon.AspNetCore.Identity.Cognito0% | 0% | 4% | 13% | 82%
Amazon.AspNetCore.Identity.Cognito/CognitoUserStore0% | 0% | 0% | 5% | 94%
Amazon.AspNetCore.Identity.Cognito/Extensions0% | 0% | 0% | 0% | 100%
Amazon.AspNetCore.Identity.Cognito/Exceptions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async Task ValidateAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoPasswordValidator.cs
35 11 3
public override async Task CheckPasswordSignInAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoSigninManager.cs
44 9 3
public async Task RespondToTwoFactorChallengeAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoSigninManager.cs
32 8 3
public override string ToString()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoSignInResult.cs
9 7 0
private async Task PopulateTokens()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserManager.cs
22 6 3
public virtual async Task ChangePasswordAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserStore/CognitoUserStore.cs
33 6 4
public CognitoSignInManager()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoSigninManager.cs
22 5 7
public CognitoSignInManager()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoSigninManager.cs
21 5 6
public virtual async Task AddClaimsAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserStore/CognitoUserStore.IUserClaimStore.cs
28 5 3
public virtual async Task RemoveClaimsAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserStore/CognitoUserStore.IUserClaimStore.cs
31 5 3
private static IServiceCollection InjectCognitoUser()
in src/Amazon.AspNetCore.Identity.Cognito/Extensions/CognitoServiceCollectionExtensions.cs
34 4 2
public static CognitoUserPool CreateUserPoolClient()
in src/Amazon.AspNetCore.Identity.Cognito/Extensions/CognitoServiceCollectionExtensions.cs
24 4 1
public async Task CreateAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserManager.cs
19 4 3
private async Task ValidatePasswordInternal()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserManager.cs
18 4 2
public override async Task PasswordSignInAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoSigninManager.cs
16 4 4
protected override async Task PreSignInCheck()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoSigninManager.cs
16 4 1
public virtual async Task GetUserAttributeVerificationCodeAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserStore/CognitoUserStore.cs
21 4 3
public virtual async Task VerifyUserAttributeAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserStore/CognitoUserStore.cs
22 4 4
private async Task GetAttributeValueAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserStore/CognitoUserStore.cs
21 4 3
public virtual async Task SetTwoFactorEnabledAsync()
in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserStore/CognitoUserStore.IUserTwoFactorStore.cs
29 4 3