aws / amazon-genomics-cli
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 1,082 units with 9,900 lines of code in units (59.7% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (181 lines of code)
    • 106 medium size units (3,018 lines of code)
    • 188 small units (2,635 lines of code)
    • 785 very small units (4,066 lines of code)
0% | 1% | 30% | 26% | 41%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 1% | 28% | 26% | 42%
ts0% | 3% | 37% | 29% | 28%
py0% | 0% | 34% | 20% | 45%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
packages/cli0% | 1% | 27% | 26% | 43%
packages/cdk0% | 2% | 37% | 24% | 35%
packages/wes_api0% | 0% | 41% | 32% | 25%
extras/agc-minimal-permissions0% | 0% | 30% | 29% | 40%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func newReplenishFromS3Func()
in packages/cli/internal/pkg/version/replenish_func.go
71 15 2
constructor()
in packages/cdk/lib/stacks/engines/miniwdl-engine-construct.ts
55 2 3
func()
in packages/cli/internal/pkg/cli/logs_workflow.go
55 14 1
constructor()
in extras/agc-minimal-permissions/lib/permissions-stack.ts
47 1 3
def _build_run_log_dict_()
in packages/cdk/lib/wes_adapter/amazon_genomics/wes/adapters/CromwellWESAdapter.py
45 6 3
func()
in packages/cli/internal/pkg/storage/input_client.go
45 11 1
private renderVpc()
in packages/cdk/lib/stacks/core-stack.ts
42 2 1
func buildRootCmd()
in packages/cli/cmd/application/main.go
41 4 0
func runProgressBar()
in packages/cli/internal/pkg/aws/cdk/progress.go
40 9 3
def parse_workflow_manifest_file()
in packages/cdk/lib/wes_adapter/amazon_genomics/wes/adapters/CromwellWESAdapter.py
39 3 1
constructor()
in packages/cdk/lib/stacks/engines/nextflow-engine-construct.ts
39 1 3
private renderTable()
in packages/cdk/lib/stacks/core-stack.ts
38 1 0
func()
in packages/cli/internal/pkg/aws/ddb/list_workflows.go
38 7 1
func BuildWorkflowRunCommand()
in packages/cli/internal/pkg/cli/workflow_run.go
38 6 0
func()
in packages/cli/internal/pkg/cli/account_deactivate.go
37 9 1
def parse_workflow_zip_file()
in packages/cdk/lib/wes_adapter/amazon_genomics/wes/adapters/CromwellWESAdapter.py
36 13 2
constructor()
in packages/cdk/lib/constructs/api-proxy.ts
36 6 2
constructor()
in packages/cdk/lib/stacks/engines/cromwell-engine-construct.ts
36 1 3
private getEngineServiceDefinition()
in packages/cdk/lib/stacks/engines/cromwell-engine-construct.ts
35 2 3
constructor()
in packages/cdk/lib/roles/cromwell-engine-role.ts
34 1 3