aws-samples / amazon-qldb-dmv-sample-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 48 units with 600 lines of code in units (54.0% 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)
    • 0 simple units (0 lines of code)
    • 48 very simple units (600 lines of code)
0% | 0% | 0% | 0% | 100%
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% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Amazon.QLDB.DMVSample.Api/Functions0% | 0% | 0% | 0% | 100%
Amazon.QLDB.DMVSample.LedgerSetup0% | 0% | 0% | 0% | 100%
Amazon.QLDB.DMVSample.Api/Services0% | 0% | 0% | 0% | 100%
Amazon.QLDB.DMVSample.Model0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public APIGatewayProxyResponse FunctionHandler()
in Amazon.QLDB.DMVSample.Api/Functions/AddSecondaryOwnerFunction.cs
51 4 2
private async Task CheckIndexExistsAsync()
in Amazon.QLDB.DMVSample.LedgerSetup/CreateIndexes.cs
25 4 2
private IEnumerable GetSecondaryOwners()
in Amazon.QLDB.DMVSample.Api/Functions/AddSecondaryOwnerFunction.cs
19 3 2
public APIGatewayProxyResponse FunctionHandler()
in Amazon.QLDB.DMVSample.Api/Functions/AddVehicleRegistrationFunction.cs
35 3 2
public APIGatewayProxyResponse FunctionHandler()
in Amazon.QLDB.DMVSample.Api/Functions/QueryVehicleRegistrationHistoryFunction.cs
47 3 2
public APIGatewayProxyResponse FunctionHandler()
in Amazon.QLDB.DMVSample.Api/Functions/FindVehiclesFunction.cs
31 2 2
public APIGatewayProxyResponse FunctionHandler()
in Amazon.QLDB.DMVSample.Api/Functions/AddVehicleFunction.cs
27 2 2
public APIGatewayProxyResponse FunctionHandler()
in Amazon.QLDB.DMVSample.Api/Functions/AddPersonFunction.cs
27 2 2
public string GetDocumentId()
in Amazon.QLDB.DMVSample.Api/Services/MetadataService.cs
8 2 4
private async Task CreateTableAsync()
in Amazon.QLDB.DMVSample.LedgerSetup/CreateTables.cs
12 2 1
private async Task CreateIndexAsync()
in Amazon.QLDB.DMVSample.LedgerSetup/CreateIndexes.cs
12 2 2
private async Task InsertDriversLicenses()
in Amazon.QLDB.DMVSample.LedgerSetup/SampleData.cs
26 2 1
private async Task InsertVehicleRegistrations()
in Amazon.QLDB.DMVSample.LedgerSetup/SampleData.cs
31 2 1
public async Task Run()
in Amazon.QLDB.DMVSample.LedgerSetup/CreateLedger.cs
9 2 0
private async Task CheckIfLedgerActiveAsync()
in Amazon.QLDB.DMVSample.LedgerSetup/CreateLedger.cs
15 2 0
private async Task CheckIfLedgerExistsAsync()
in Amazon.QLDB.DMVSample.LedgerSetup/CreateLedger.cs
6 2 0
public AddSecondaryOwnerFunction()
in Amazon.QLDB.DMVSample.Api/Functions/AddSecondaryOwnerFunction.cs
6 1 0
private bool CheckIfSecondaryOwnerExists()
in Amazon.QLDB.DMVSample.Api/Functions/AddSecondaryOwnerFunction.cs
4 1 2
private bool CheckIfVinAlreadyExists()
in Amazon.QLDB.DMVSample.Api/Functions/AddSecondaryOwnerFunction.cs
6 1 2
private IIonValue ConvertOwnerToIonValue()
in Amazon.QLDB.DMVSample.Api/Functions/AddSecondaryOwnerFunction.cs
4 1 1