aws-samples / amazon-ecs-dotnet-app-graviton
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 60 units with 707 lines of code in units (44.7% 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)
    • 3 simple units (71 lines of code)
    • 57 very simple units (636 lines of code)
0% | 0% | 0% | 10% | 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% | 0% | 10% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
app/Controllers0% | 0% | 0% | 19% | 80%
app0% | 0% | 0% | 33% | 66%
app/Data0% | 0% | 0% | 0% | 100%
app/Migrations0% | 0% | 0% | 0% | 100%
app/Attribute0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async Task ChangePassword()
in app/Controllers/AccountController.cs
22 6 1
public async Task SetPassword()
in app/Controllers/AccountController.cs
22 6 1
27 6 1
public async Task Index()
in app/Controllers/HomeController.cs
32 5 3
public async Task Edit()
in app/Controllers/HomeController.cs
29 5 2
public async Task Login()
in app/Controllers/AccountController.cs
19 4 1
public async Task Details()
in app/Controllers/HomeController.cs
14 3 1
public async Task Edit()
in app/Controllers/HomeController.cs
13 3 1
public async Task Delete()
in app/Controllers/HomeController.cs
14 3 1
public async Task CreateAsync()
in app/Data/AppUserStore.cs
15 3 2
public async Task DeleteAsync()
in app/Data/AppUserStore.cs
10 3 2
public async Task FindByIdAsync()
in app/Data/AppUserStore.cs
11 3 2
public Task SetNormalizedUserNameAsync()
in app/Data/AppUserStore.cs
8 3 3
public Task SetPasswordHashAsync()
in app/Data/AppUserStore.cs
8 3 3
public Task SetUserNameAsync()
in app/Data/AppUserStore.cs
8 3 3
public async Task UpdateAsync()
in app/Data/AppUserStore.cs
15 3 2
public override void OnActionExecuting()
in app/Attribute/EnforceChangePasswordAttribute.cs
7 2 1
public async Task Logout()
in app/Controllers/AccountController.cs
8 2 0
public async Task Create()
in app/Controllers/HomeController.cs
11 2 1
17 2 1