aws-samples / aws-iot-core-dotnet-app-mqtt-over-websockets-sigv4
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 73 units with 1,558 lines of code in units (67.6% of code).
    • 1 very long units (230 lines of code)
    • 8 long units (564 lines of code)
    • 8 medium size units (212 lines of code)
    • 23 small units (360 lines of code)
    • 33 very small units (192 lines of code)
14% | 36% | 13% | 23% | 12%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs14% | 36% | 13% | 23% | 12%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp82% | 0% | 0% | 0% | 17%
Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Signers0% | 75% | 0% | 16% | 8%
Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Signers0% | 75% | 0% | 16% | 8%
Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Presenter0% | 0% | 60% | 29% | 9%
Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Messaging0% | 0% | 61% | 31% | 6%
Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Utils0% | 0% | 20% | 52% | 27%
Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Utils0% | 0% | 26% | 61% | 11%
Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets0% | 0% | 100% | 0% | 0%
Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Model0% | 0% | 100% | 0% | 0%
Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Model0% | 0% | 0% | 86% | 13%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private void InitializeComponent()
in Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Form.Designer.cs
230 1 0
public string ComputeSignature()
in Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Signers/AWS4SignerForQueryParameterAuth.cs
82 9 5
public string ComputeSignature()
in Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Signers/AWS4SignerForQueryParameterAuth.cs
82 9 5
public string ComputeSignature()
in Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Signers/AWS4SignerForChunkedUpload.cs
68 6 5
public string ComputeSignature()
in Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Signers/AWS4SignerForChunkedUpload.cs
68 6 5
public string ComputeSignature()
in Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Signers/AWS4SignerForPOST.cs
66 6 5
public string ComputeSignature()
in Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Signers/AWS4SignerForAuthorizationHeader.cs
66 6 5
public string ComputeSignature()
in Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Signers/AWS4SignerForPOST.cs
66 6 5
public string ComputeSignature()
in Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Signers/AWS4SignerForAuthorizationHeader.cs
66 6 5
public static void InvokeHttpRequest()
in Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Utils/HttpHelpers.cs
35 5 4
public static void InvokeHttpRequest()
in Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Utils/HttpHelpers.cs
35 5 4
public async Task ConnectToAwsIoT()
in Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Presenter/AwsIotPresenter.cs
27 2 0
public async Task ConnectToAwsIoT()
in Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Messaging/CloudConnector.cs
26 2 0
public async Task SubscribeTo()
in Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Presenter/AwsIotPresenter.cs
23 4 1
static async Task Main()
in Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Program.cs
23 4 1
public string SignRequestUrl()
in Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Model/AwsMqttConnection.cs
22 1 0
public async Task SubscribeTo()
in Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Messaging/CloudConnector.cs
21 3 1
public static string ReadSetting()
in Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Utils/ConfigHelper.cs
20 2 1
public string SignRequestUrl()
in Dotnet core console app/AwsIOTMqttOverWebsockets/AwsIOTMqttOverWebsockets/Model/AwsMqttConnection.cs
20 1 0
public static HttpWebRequest ConstructWebRequest()
in Dotnet win app/awsiotmqttoverwebsocketswinapp/awsiotmqttoverwebsocketswinapp/Utils/HttpHelpers.cs
19 5 3