aws / aws-rfdk
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 655 units with 9,429 lines of code in units (69.3% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (345 lines of code)
    • 14 medium complex units (530 lines of code)
    • 57 simple units (1,930 lines of code)
    • 582 very simple units (6,624 lines of code)
0% | 3% | 5% | 20% | 70%
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
ts0% | 3% | 5% | 19% | 70%
py0% | 0% | 0% | 36% | 63%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
packages/aws-rfdk0% | 4% | 4% | 18% | 71%
tools/pkglint0% | 0% | 15% | 24% | 59%
integ/lib0% | 0% | 0% | 34% | 65%
integ/components0% | 0% | 0% | 20% | 79%
lambda-layers/lib0% | 0% | 0% | 74% | 25%
integ/scripts0% | 0% | 0% | 24% | 75%
tools/cdk-build-tools0% | 0% | 0% | 9% | 90%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
constructor()
in packages/aws-rfdk/lib/deadline/lib/render-queue.ts
185 27 3
constructor()
in packages/aws-rfdk/lib/deadline/lib/repository.ts
160 26 3
with the Work to which such Contribution()
in tools/pkglint/lib/licensing.ts
94 17 1
institute patent litigation against any entity()
in tools/pkglint/lib/licensing.ts
93 17 1
export function isValidTagSpecification()
in packages/aws-rfdk/lib/lambdas/nodejs/configure-spot-event-plugin/conversion.ts
11 15 1
private implementsConnectionOptions()
in packages/aws-rfdk/lib/lambdas/nodejs/configure-spot-event-plugin/handler.ts
11 15 1
export async function handler()
in packages/aws-rfdk/lib/lambdas/nodejs/unhealthyFleetAction/index.ts
50 15 2
export function implementsIConnectionOptions()
in packages/aws-rfdk/lib/lambdas/nodejs/mongodb/types.ts
12 13 1
async function confirmTaskCompletion()
in packages/aws-rfdk/lib/lambdas/nodejs/export-logs/index.ts
36 13 1
public static async fromExisting()
in packages/aws-rfdk/lib/lambdas/nodejs/lib/dynamodb/composite-table.ts
38 12 2
export function implementsIMongoDbConfigureResource()
in packages/aws-rfdk/lib/lambdas/nodejs/mongodb/types.ts
17 12 1
private implementsWaitForStableServiceResourceProps()
in packages/aws-rfdk/lib/lambdas/nodejs/wait-for-stable-service/handler.ts
10 12 1
constructor()
in packages/aws-rfdk/lib/deadline/lib/configure-spot-event-plugin.ts
124 11 3
export function implementsISecretCertificate()
in packages/aws-rfdk/lib/lambdas/nodejs/x509-certificate/types.ts
12 11 1
export function implementsINewSecretProps()
in packages/aws-rfdk/lib/lambdas/nodejs/x509-certificate/types.ts
11 11 1
export function implementsIX509CertificateGenerate()
in packages/aws-rfdk/lib/lambdas/nodejs/x509-certificate/types.ts
11 11 1
public validate()
in tools/pkglint/lib/rules.ts
36 10 1
private validateBlockDevices()
in packages/aws-rfdk/lib/deadline/lib/spot-event-plugin-fleet.ts
24 9 1
def _get_deadline_command_path()
in packages/aws-rfdk/lib/deadline/scripts/python/configure_identity_registration_settings.py
17 9 0
public registerWorkerFleet()
in packages/aws-rfdk/lib/core/lib/load-balancer-manager.ts
56 9 3