aws / amazon-s3-encryption-client-dotnet
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 145 units with 1,471 lines of code in units (57.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 19 medium size units (546 lines of code)
    • 28 small units (404 lines of code)
    • 98 very small units (521 lines of code)
0% | 0% | 37% | 27% | 35%
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% | 37% | 27% | 35%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/Internal0% | 0% | 46% | 31% | 21%
src0% | 0% | 38% | 15% | 46%
src/Util0% | 0% | 0% | 57% | 42%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
43 5 3
protected void DecryptObjectUsingMetadata()
in src/Internal/SetupDecryptionHandler.cs
40 8 2
39 4 2
protected void DecryptObject()
in src/Internal/SetupDecryptionHandler.cs
35 5 2
protected void PostInvoke()
in src/Internal/SetupDecryptionHandler.cs
34 4 1
private static string GetKmsKeyIdFromMetadata()
in src/Internal/SetupDecryptionHandlerV1.cs
34 5 1
29 5 3
28 3 2
27 3 1
protected override void InvokeAsyncCallback()
in src/Internal/SetupDecryptionHandler.cs
26 5 1
protected bool KMSEnvelopeKeyIsPresent()
in src/Internal/SetupDecryptionHandler.cs
26 5 3
26 3 1
24 4 3
protected void PostInvokeSynchronous()
in src/Internal/SetupDecryptionHandler.cs
23 4 2
protected override void GenerateEncryptedUploadPartRequest()
in src/Internal/SetupEncryptionHandlerV2.cs
23 4 1
protected override void UpdateMultipartUploadEncryptionContext()
in src/Internal/SetupDecryptionHandlerV2.cs
23 6 1
protected override void GenerateEncryptedUploadPartRequest()
in src/Internal/SetupEncryptionHandlerV1.cs
23 4 1
22 3 2
21 3 2
protected override void GenerateInitiateMultiPartUploadRequest()
in src/Internal/SetupEncryptionHandlerV2.cs
20 2 3