aws-samples / aws-genomics-workflows
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 36 units with 710 lines of code in units (13.4% of code).
    • 1 very long units (114 lines of code)
    • 1 long units (68 lines of code)
    • 9 medium size units (301 lines of code)
    • 12 small units (164 lines of code)
    • 13 very small units (63 lines of code)
16% | 9% | 42% | 23% | 8%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts24% | 14% | 44% | 15% | 1%
py0% | 0% | 37% | 38% | 23%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/gwf-core-codepipeline/lib100% | 0% | 0% | 0% | 0%
src/aws-genomics-cdk/lib0% | 18% | 59% | 20% | 1%
src/scripts0% | 0% | 59% | 40% | 0%
ROOT0% | 0% | 78% | 0% | 21%
src/lambda/ecr0% | 0% | 0% | 62% | 37%
src/lambda/codebuild0% | 0% | 0% | 46% | 53%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
constructor()
in src/gwf-core-codepipeline/lib/aws-genomics-workflow-code-build-stack.ts
114 1 3
constructor()
in src/aws-genomics-cdk/lib/batch/batch-stack.ts
68 2 3
constructor()
in src/aws-genomics-cdk/lib/batch/batch-iam-stack.ts
50 1 3
constructor()
in src/aws-genomics-cdk/lib/aws-genomics-cdk-stack.ts
49 6 3
constructor()
in src/aws-genomics-cdk/lib/workflows/job-definition-construct.ts
42 1 3
40 6 2
constructor()
in src/aws-genomics-cdk/lib/workflows/genomics-task-construct.ts
29 2 3
def run()
in src/scripts/nf-aws.py
28 7 1
def step()
in src/scripts/nf-aws.py
21 6 3
constructor()
in src/aws-genomics-cdk/lib/vpc/vpc-stack.ts
21 1 3
constructor()
in src/aws-genomics-cdk/lib/batch/job-queue-construct.ts
21 2 3
def check_build_job_status()
in src/lambda/codebuild/lambda.py
19 4 2
def log()
in src/scripts/nf-aws.py
19 5 1
def wait()
in src/lambda/ecr/lambda.py
18 7 2
def status()
in src/scripts/nf-aws.py
14 7 1
constructor()
in src/aws-genomics-cdk/lib/workflows/job-definitions.ts
12 1 1
constructor()
in src/aws-genomics-cdk/lib/workflows/job-definitions.ts
12 1 1
constructor()
in src/aws-genomics-cdk/lib/workflows/job-definitions.ts
12 1 1
constructor()
in src/aws-genomics-cdk/lib/workflows/job-definitions.ts
12 1 1
constructor()
in src/aws-genomics-cdk/lib/workflows/job-definitions.ts
12 1 1