aws-quickstart / quickstart-dotnetcore-cicd
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 11 units with 60 lines of code in units (9.2% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 1 small units (20 lines of code)
    • 10 very small units (40 lines of code)
0% | 0% | 0% | 33% | 66%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 0% | 0% | 33% | 66%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
WebApplicationSample0% | 0% | 0% | 52% | 47%
WebApplicationSample/Pages0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 11 longest units
Unit# linesMcCabe index# params
public void Configure()
in WebApplicationSample/Startup.cs
20 2 2
public static IHostBuilder CreateHostBuilder()
in WebApplicationSample/Program.cs
6 1 1
public IndexModel()
in WebApplicationSample/Pages/Index.cshtml.cs
4 1 1
public ErrorModel()
in WebApplicationSample/Pages/Error.cshtml.cs
4 1 1
public void OnGet()
in WebApplicationSample/Pages/Error.cshtml.cs
4 1 0
public PrivacyModel()
in WebApplicationSample/Pages/Privacy.cshtml.cs
4 1 1
public Startup()
in WebApplicationSample/Startup.cs
4 1 1
public void ConfigureServices()
in WebApplicationSample/Startup.cs
4 1 1
public static void Main()
in WebApplicationSample/Program.cs
4 1 1
public void OnGet()
in WebApplicationSample/Pages/Index.cshtml.cs
3 1 0
public void OnGet()
in WebApplicationSample/Pages/Privacy.cshtml.cs
3 1 0