microsoft / franceconnect-service-provider-dotnet-webapp-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 64 units with 1,326 lines of code in units (44.6% of code).
    • 3 very long units (582 lines of code)
    • 2 long units (113 lines of code)
    • 9 medium size units (236 lines of code)
    • 16 small units (222 lines of code)
    • 34 very small units (173 lines of code)
43% | 8% | 17% | 16% | 13%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs44% | 8% | 17% | 16% | 12%
js0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Source/WebApp-Service-Provider-DotNet/Migrations97% | 0% | 0% | 2% | 0%
Source/WebApp-Service-Provider-DotNet/Controllers0% | 17% | 36% | 27% | 19%
Source/WebApp-Service-Provider-DotNet/Helpers0% | 0% | 0% | 100% | 0%
Source/WebApp-Service-Provider-DotNet/Services0% | 0% | 0% | 0% | 100%
Source/WebApp-Service-Provider-DotNet/Models0% | 0% | 0% | 0% | 100%
Source/WebApp-Service-Provider-DotNet0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected override void BuildTargetModel()
in Source/WebApp-Service-Provider-DotNet/Migrations/20210929141814_InitialCreate.Designer.cs
202 1 1
protected override void BuildModel()
in Source/WebApp-Service-Provider-DotNet/Migrations/ApplicationDbContextModelSnapshot.cs
202 1 1
protected override void Up()
in Source/WebApp-Service-Provider-DotNet/Migrations/20210929141814_InitialCreate.cs
178 1 1
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 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 LinkLoginCallback()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
25 4 0
public async Task Login()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
24 4 2
public async Task RemoveLogin()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
24 4 1
public async Task ManageLogins()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
23 6 1
public IActionResult GetResource()
in Source/WebApp-Service-Provider-DotNet/Controllers/DataController.cs
22 1 1
public async Task ChangePassword()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
21 4 1
public async Task PivotIdentity()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
21 2 0
public async Task ResetPassword()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
19 4 1
public async Task SetPassword()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
19 4 1
protected override void Down()
in Source/WebApp-Service-Provider-DotNet/Migrations/20210929141814_InitialCreate.cs
17 1 1
public async Task Register()
in Source/WebApp-Service-Provider-DotNet/Controllers/AccountController.cs
16 3 1
public async Task Index()
in Source/WebApp-Service-Provider-DotNet/Controllers/ManageController.cs
16 4 1
public static bool IsEIdasLevelMet()
in Source/WebApp-Service-Provider-DotNet/Helpers/Validation.cs
15 4 2