awslabs / fhir-works-on-aws-deployment
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 44 units with 535 lines of code in units (11.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (68 lines of code)
    • 3 simple units (50 lines of code)
    • 39 very simple units (417 lines of code)
0% | 0% | 12% | 9% | 77%
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
java0% | 0% | 40% | 0% | 59%
py0% | 0% | 20% | 40% | 40%
ts0% | 0% | 0% | 8% | 91%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
javaHapiValidatorLambda/src0% | 0% | 40% | 0% | 59%
bulkExport/glueScripts0% | 0% | 20% | 40% | 40%
auditLogMover0% | 0% | 0% | 23% | 76%
src/implementationGuides0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
bulkExport0% | 0% | 0% | 0% | 100%
updateSearchMappings0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private PrePopulatedValidationSupport loadIgs()
in javaHapiValidatorLambda/src/main/java/software/amazon/fwoa/Validator.java
57 13 1
def is_included_in_group_export()
in bulkExport/glueScripts/export-script.py
11 11 6
def deep_get()
in bulkExport/glueScripts/export-script.py
13 6 2
def get_transitive_references()
in bulkExport/glueScripts/export-script.py
9 6 3
static async getAllLogStreams()
in auditLogMover/auditLogMoverHelper.ts
28 6 1
private depthFirst()
in src/implementationGuides/IGCompiler.ts
17 5 2
def is_active_group_member()
in bulkExport/glueScripts/export-script.py
9 5 2
async function compileIGs()
in scripts/compile-igs.ts
24 5 0
private async collectResources()
in src/implementationGuides/IGCompiler.ts
19 4 2
private async extractIgInfo()
in src/implementationGuides/IGCompiler.ts
25 4 1
public Validator()
in javaHapiValidatorLambda/src/main/java/software/amazon/fwoa/Validator.java
17 4 2
private void addToMap()
in javaHapiValidatorLambda/src/main/java/software/amazon/fwoa/Validator.java
13 4 3
async function listIgDirs()
in src/implementationGuides/IGCompiler.ts
13 3 1
public async compileIGs()
in src/implementationGuides/IGCompiler.ts
19 3 2
private async collectIGInfos()
in src/implementationGuides/IGCompiler.ts
15 3 1
private validateDependencies()
in src/implementationGuides/IGCompiler.ts
9 3 1
def is_internal_reference()
in bulkExport/glueScripts/export-script.py
7 3 2
static getEachDayInTimeFrame()
in auditLogMover/auditLogMoverHelper.ts
12 3 2
private static async getDirectoriesInS3GivenPrefixes()
in auditLogMover/auditLogMoverHelper.ts
25 3 2
static async putCWMetric()
in auditLogMover/auditLogMoverHelper.ts
15 3 3