aws / amazon-s3-encryption-client-dotnet
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 145 units with 1,471 lines of code in units (57.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (63 lines of code)
    • 143 very simple units (1,408 lines of code)
0% | 0% | 0% | 4% | 95%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cs0% | 0% | 0% | 4% | 95%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Internal0% | 0% | 0% | 10% | 89%
src0% | 0% | 0% | 0% | 100%
src/Util0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
protected void DecryptObjectUsingMetadata()
in src/Internal/SetupDecryptionHandler.cs
40 8 2
protected override void UpdateMultipartUploadEncryptionContext()
in src/Internal/SetupDecryptionHandlerV2.cs
23 6 1
protected override void InvokeAsyncCallback()
in src/Internal/SetupDecryptionHandler.cs
26 5 1
protected bool KMSEnvelopeKeyIsPresent()
in src/Internal/SetupDecryptionHandler.cs
26 5 3
protected void DecryptObject()
in src/Internal/SetupDecryptionHandler.cs
35 5 2
private static string GetKmsKeyIdFromMetadata()
in src/Internal/SetupDecryptionHandlerV1.cs
34 5 1
protected override void UpdateMultipartUploadEncryptionContext()
in src/Internal/SetupDecryptionHandlerV1.cs
18 5 1
43 5 3
29 5 3
protected void PostInvoke()
in src/Internal/SetupDecryptionHandler.cs
34 4 1
protected void PostInvokeSynchronous()
in src/Internal/SetupDecryptionHandler.cs
23 4 2
protected override EncryptionInstructions GenerateInstructions()
in src/Internal/SetupEncryptionHandlerV2.cs
13 4 1
protected override void GenerateEncryptedUploadPartRequest()
in src/Internal/SetupEncryptionHandlerV2.cs
23 4 1
protected override EncryptionInstructions GenerateInstructions()
in src/Internal/SetupEncryptionHandlerV1.cs
13 4 1
protected override void GenerateEncryptedUploadPartRequest()
in src/Internal/SetupEncryptionHandlerV1.cs
23 4 1
24 4 3
39 4 2
17 4 1
public override IAsyncResult InvokeAsync()
in src/Internal/SetupEncryptionHandler.cs
17 3 1
internal void PreInvokeSynchronous()
in src/Internal/SetupEncryptionHandler.cs
15 3 2