microsoft / franceconnect-service-provider-dotnet-webapp-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 64 units with 1,326 lines of code in units (44.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (60 lines of code)
    • 2 simple units (76 lines of code)
    • 61 very simple units (1,190 lines of code)
0% | 0% | 4% | 5% | 89%
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% | 4% | 5% | 89%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source/WebApp-Service-Provider-DotNet/Controllers0% | 0% | 9% | 11% | 79%
Source/WebApp-Service-Provider-DotNet/Migrations0% | 0% | 0% | 0% | 100%
Source/WebApp-Service-Provider-DotNet/Services0% | 0% | 0% | 0% | 100%
Source/WebApp-Service-Provider-DotNet/Helpers0% | 0% | 0% | 0% | 100%
Source/WebApp-Service-Provider-DotNet/Models0% | 0% | 0% | 0% | 100%
Source/WebApp-Service-Provider-DotNet0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async Task GetResourceCallback()
in Source/WebApp-Service-Provider-DotNet/Controllers/DataController.cs
60 11 2
public async Task Resource()
in Source/WebApp-Service-Provider-DotNet/Controllers/DataController.cs
53 7 0
public async Task ManageLogins()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
23 6 1
public async Task ExternalLoginCallback()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
41 5 1
public async Task ExternalLoginConfirmation()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
35 5 2
public async Task ConfirmEmail()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
14 5 2
public async Task Login()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
24 4 2
public async Task ForgotPassword()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
12 4 1
public async Task ResetPassword()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
19 4 1
public async Task Index()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
16 4 1
public async Task RemoveLogin()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
24 4 1
public async Task ChangePassword()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
21 4 1
public async Task SetPassword()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
19 4 1
public async Task LinkLoginCallback()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
25 4 0
public static bool IsEIdasLevelMet()
in Source/WebApp-Service-Provider-DotNet/Helpers/Validation.cs
15 4 2
public async Task Register()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
16 3 1
public async Task LogOff()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
13 2 0
public IActionResult ResetPassword()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
4 2 1
private void AddErrors()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
7 2 1
private IActionResult RedirectToLocal()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
11 2 1