aws / aws-dotnet-deploy
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 740 units with 9,367 lines of code in units (51.3% of code).
    • 2 very long units (308 lines of code)
    • 16 long units (1,068 lines of code)
    • 114 medium size units (3,477 lines of code)
    • 152 small units (2,270 lines of code)
    • 456 very small units (2,244 lines of code)
3% | 11% | 37% | 24% | 23%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs3% | 11% | 37% | 24% | 23%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/AWS.Deploy.Recipes20% | 14% | 28% | 19% | 16%
src/AWS.Deploy.CLI0% | 20% | 43% | 19% | 16%
src/AWS.Deploy.Orchestration0% | 4% | 40% | 31% | 23%
src/AWS.Deploy.Common0% | 0% | 38% | 23% | 38%
src/AWS.Deploy.ServerMode.Client0% | 0% | 43% | 25% | 31%
testapps/ContosoUniversityWeb0% | 0% | 27% | 43% | 29%
src/AWS.Deploy.DockerEngine0% | 0% | 51% | 16% | 32%
testapps/ContosoUniversityBackendService0% | 0% | 41% | 42% | 16%
src/AWS.Deploy.Recipes.CDK.Common0% | 0% | 33% | 25% | 41%
src/AWS.Deploy.ServerMode.ClientGenerator0% | 0% | 69% | 30% | 0%
testapps/docker0% | 0% | 0% | 32% | 67%
testapps/WebAppWithDockerFile0% | 0% | 0% | 33% | 66%
testapps/WebAppNoDockerFile0% | 0% | 0% | 31% | 68%
testapps/ConsoleAppService0% | 0% | 0% | 0% | 100%
testapps/BlazorWasm310% | 0% | 0% | 0% | 100%
testapps/BlazorWasm500% | 0% | 0% | 0% | 100%
testapps/MessageProcessingApp0% | 0% | 0% | 0% | 100%
testapps/ConsoleAppTask0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private void ConfigureBeanstalkEnvironment()
in src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppElasticBeanstalkLinux/Generated/Recipe.cs
198 17 1
private void ConfigureCloudFrontDistribution()
in src/AWS.Deploy.Recipes/CdkTemplates/BlazorWasm/Generated/Recipe.cs
110 12 1
private Command BuildDeployCommand()
in src/AWS.Deploy.CLI/Commands/CommandFactory.cs
94 6 0
private void ConfigureLoadBalancer()
in src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppEcsFargate/Generated/Recipe.cs
87 13 1
public async Task Run()
in src/AWS.Deploy.CLI/Utilities/CommandLineWrapper.cs
80 13 8
private void ConfigureECSClusterAndService()
in src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppEcsFargate/Generated/Recipe.cs
74 6 1
private Command BuildDeleteCommand()
in src/AWS.Deploy.CLI/Commands/CommandFactory.cs
70 6 0
private async Task ConfigureDeploymentFromCli()
in src/AWS.Deploy.CLI/Commands/DeployCommand.cs
68 20 2
public async Task UpdateLastDeployedStack()
in src/AWS.Deploy.Orchestration/LocalUserSettings/LocalUserSettingsEngine.cs
67 10 4
private Command BuildDeploymentProjectCommand()
in src/AWS.Deploy.CLI/Commands/CommandFactory.cs
66 5 0
private void ConfigureDeploymentFromConfigFile()
in src/AWS.Deploy.CLI/Commands/DeployCommand.cs
65 13 2
public T AskUserToChoose()
in src/AWS.Deploy.CLI/ConsoleUtilities.cs
63 12 4
private async Task ConfigureDeploymentFromCli()
in src/AWS.Deploy.CLI/Commands/DeployCommand.cs
60 16 3
private void ConfigureAppRunnerService()
in src/AWS.Deploy.Recipes/CdkTemplates/AspNetAppAppRunner/Generated/Recipe.cs
59 8 1
public static AuthenticateResult ProcessAuthorizationHeader()
in src/AWS.Deploy.CLI/ServerMode/AwsCredentialsAuthenticationHandler.cs
56 11 2
public UserResponse AskUserToChooseOrCreateNew()
in src/AWS.Deploy.CLI/ConsoleUtilities.cs
56 13 6
public async Task ResolveAWSCredentials()
in src/AWS.Deploy.CLI/AWSUtilities.cs
52 14 2
private async Task ReadNewEventsAsync()
in src/AWS.Deploy.CLI/CloudFormation/StackEventMonitor.cs
51 10 0
public static void Initialize()
in testapps/ContosoUniversityWeb/Data/DbInitializer.cs
50 2 1
public static void Initialize()
in testapps/ContosoUniversityBackendService/Data/DbInitializer.cs
50 2 1