aws / aws-sdk-unity-net
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 13,402 units with 124,041 lines of code in units (52.6% of code).
    • 31 very long units (4,377 lines of code)
    • 181 long units (12,301 lines of code)
    • 1,467 medium size units (41,155 lines of code)
    • 1,661 small units (25,065 lines of code)
    • 10,062 very small units (41,143 lines of code)
3% | 9% | 33% | 20% | 33%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs3% | 9% | 33% | 20% | 33%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/Services/Lambda12% | 10% | 26% | 15% | 36%
src/Services/DynamoDBv24% | 10% | 30% | 14% | 39%
src/Services/S34% | 14% | 26% | 19% | 33%
src/Services/SimpleEmail6% | 4% | 34% | 24% | 30%
src/Services/CognitoSync7% | 8% | 29% | 23% | 32%
src/Services/SQS7% | 6% | 35% | 12% | 38%
src/Services/CognitoIdentity2% | 8% | 43% | 11% | 33%
src/Services/IdentityManagement0% | 7% | 38% | 26% | 28%
src/Services/KinesisFirehose0% | 27% | 26% | 11% | 35%
src/Core/Amazon.Runtime0% | 10% | 28% | 27% | 33%
src/Services/MobileAnalytics0% | 15% | 38% | 28% | 17%
src/Services/Kinesis0% | 3% | 47% | 16% | 33%
src/Services/SecurityToken0% | 7% | 37% | 15% | 39%
src/Services/SimpleNotificationService0% | 2% | 52% | 17% | 27%
src/Core/_unity0% | 25% | 45% | 16% | 12%
src/Core/RegionEndpoint0% | 12% | 36% | 27% | 24%
src/Core/Amazon.Util0% | 3% | 26% | 32% | 36%
src/Core/Amazon.Auth0% | 0% | 49% | 23% | 26%
src/Core0% | 0% | 39% | 33% | 26%
src/Core/Amazon.MissingTypes0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private void RunSyncOperation()
in src/Services/CognitoSync/Custom/SyncManager/Dataset.cs
255 37 1
public IRequest Marshall()
in src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketReplicationRequestMarshaller.cs
195 42 1
public FunctionConfiguration Unmarshall()
in src/Services/Lambda/Generated/Model/Internal/MarshallTransformations/FunctionConfigurationUnmarshaller.cs
168 29 1
public override AmazonWebServiceResponse Unmarshall()
in src/Services/Lambda/Generated/Model/Internal/MarshallTransformations/PublishVersionResponseUnmarshaller.cs
166 28 1
public override AmazonWebServiceResponse Unmarshall()
in src/Services/Lambda/Generated/Model/Internal/MarshallTransformations/CreateFunctionResponseUnmarshaller.cs
166 28 1
public override AmazonWebServiceResponse Unmarshall()
in src/Services/Lambda/Generated/Model/Internal/MarshallTransformations/UpdateFunctionCodeResponseUnmarshaller.cs
166 28 1
public override AmazonWebServiceResponse Unmarshall()
in src/Services/Lambda/Generated/Model/Internal/MarshallTransformations/UpdateFunctionConfigurationResponseUnmarshaller.cs
166 28 1
public override AmazonWebServiceResponse Unmarshall()
in src/Services/Lambda/Generated/Model/Internal/MarshallTransformations/GetFunctionConfigurationResponseUnmarshaller.cs
166 28 1
public IRequest Marshall()
in src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutLifecycleConfigurationRequestMarshaller.cs
158 37 1
public IRequest Marshall()
in src/Services/DynamoDBv2/Generated/Model/Internal/MarshallTransformations/QueryRequestMarshaller.cs
158 24 1
public IRequest Marshall()
in src/Services/SimpleEmail/Generated/Model/Internal/MarshallTransformations/CreateReceiptRuleRequestMarshaller.cs
155 40 1
public IRequest Marshall()
in src/Services/SimpleEmail/Generated/Model/Internal/MarshallTransformations/UpdateReceiptRuleRequestMarshaller.cs
151 39 1
public IRequest Marshall()
in src/Services/DynamoDBv2/Generated/Model/Internal/MarshallTransformations/ScanRequestMarshaller.cs
143 22 1
public IRequest Marshall()
in src/Services/S3/Custom/Model/Internal/MarshallTransformations/PutBucketWebsiteRequestMarshaller.cs
142 30 1
public TableDescription Unmarshall()
in src/Services/DynamoDBv2/Generated/Model/Internal/MarshallTransformations/TableDescriptionUnmarshaller.cs
138 24 1
public void ChangeIdentityId()
in src/Services/CognitoSync/Custom/SyncManager/Storage/SQLiteLocalStorage.cs
131 4 2
public IRequest Marshall()
in src/Services/SQS/Generated/Model/Internal/MarshallTransformations/SendMessageBatchRequestMarshaller.cs
130 30 1
public IRequest Marshall()
in src/Services/DynamoDBv2/Generated/Model/Internal/MarshallTransformations/UpdateItemRequestMarshaller.cs
128 18 1
public IRequest Marshall()
in src/Services/Lambda/Generated/Model/Internal/MarshallTransformations/CreateFunctionRequestMarshaller.cs
126 19 1
public IRequest Marshall()
in src/Services/SimpleEmail/Generated/Model/Internal/MarshallTransformations/SendBulkTemplatedEmailRequestMarshaller.cs
125 30 1