aws-samples / aws-genomics-workflows
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 36 units with 710 lines of code in units (13.4% 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)
    • 6 simple units (170 lines of code)
    • 30 very simple units (540 lines of code)
0% | 0% | 0% | 23% | 76%
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
py0% | 0% | 0% | 50% | 49%
ts0% | 0% | 0% | 10% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/scripts0% | 0% | 0% | 76% | 23%
src/aws-genomics-cdk/lib0% | 0% | 0% | 13% | 86%
ROOT0% | 0% | 0% | 78% | 21%
src/lambda/ecr0% | 0% | 0% | 28% | 71%
src/gwf-core-codepipeline/lib0% | 0% | 0% | 0% | 100%
src/lambda/codebuild0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def wait()
in src/lambda/ecr/lambda.py
18 7 2
def run()
in src/scripts/nf-aws.py
28 7 1
def status()
in src/scripts/nf-aws.py
14 7 1
def step()
in src/scripts/nf-aws.py
21 6 3
constructor()
in src/aws-genomics-cdk/lib/aws-genomics-cdk-stack.ts
49 6 3
40 6 2
def update()
in src/lambda/ecr/lambda.py
11 5 4
def delete()
in src/lambda/ecr/lambda.py
9 5 4
def log()
in src/scripts/nf-aws.py
19 5 1
def check_build_job_status()
in src/lambda/codebuild/lambda.py
19 4 2
def create()
in src/lambda/ecr/lambda.py
11 4 4
def put_lifecycle_policy()
in src/lambda/ecr/lambda.py
6 2 2
def handler()
in src/lambda/ecr/lambda.py
9 2 2
constructor()
in src/aws-genomics-cdk/lib/workflows/genomics-task-construct.ts
29 2 3
constructor()
in src/aws-genomics-cdk/lib/batch/job-queue-construct.ts
21 2 3
constructor()
in src/aws-genomics-cdk/lib/batch/batch-stack.ts
68 2 3
6 2 5
constructor()
in src/gwf-core-codepipeline/lib/aws-genomics-workflow-code-build-stack.ts
114 1 3
def create()
in src/lambda/codebuild/lambda.py
3 1 2
def update()
in src/lambda/codebuild/lambda.py
3 1 2