aws / amazon-genomics-cli
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 1,082 units with 9,900 lines of code in units (59.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (259 lines of code)
    • 43 simple units (1,095 lines of code)
    • 1,033 very simple units (8,546 lines of code)
0% | 0% | 2% | 11% | 86%
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
go0% | 0% | 2% | 11% | 85%
py0% | 0% | 5% | 18% | 76%
ts0% | 0% | 0% | 2% | 97%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
packages/cli0% | 0% | 2% | 9% | 87%
packages/cdk0% | 0% | 2% | 10% | 86%
packages/wes_api0% | 0% | 0% | 47% | 52%
extras/agc-minimal-permissions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func newReplenishFromS3Func()
in packages/cli/internal/pkg/version/replenish_func.go
71 15 2
func()
in packages/cli/internal/pkg/cli/logs_workflow.go
55 14 1
def parse_workflow_zip_file()
in packages/cdk/lib/wes_adapter/amazon_genomics/wes/adapters/CromwellWESAdapter.py
36 13 2
def _get_workflow_state_()
in packages/cdk/lib/wes_adapter/amazon_genomics/wes/adapters/CromwellWESAdapter.py
24 12 3
func()
in packages/cli/internal/pkg/storage/input_client.go
45 11 1
func()
in packages/cli/internal/pkg/cli/context_destroy.go
28 11 1
func setBody()
in packages/wes_api/client/client.go
26 10 2
def logging_decorator()
in packages/cdk/lib/wes_adapter/amazon_genomics/util/method_logger.py
25 10 1
def _deserialize()
in packages/cdk/lib/wes_adapter/rest_api/util.py
18 10 2
func levelIconFormatter()
in packages/cli/internal/pkg/logging/logging.go
32 10 0
func()
in packages/wes_api/client/client.go
31 9 1
func runProgressBar()
in packages/cli/internal/pkg/aws/cdk/progress.go
40 9 3
func()
in packages/cli/internal/pkg/cli/context_deploy.go
20 9 1
func()
in packages/cli/internal/pkg/cli/account_deactivate.go
37 9 1
func()
in packages/wes_api/client/configuration.go
24 8 1
def _build_state_model_()
in packages/cdk/lib/wes_adapter/amazon_genomics/wes/adapters/CromwellWESAdapter.py
17 8 2
func parameterToString()
in packages/wes_api/client/client.go
19 7 2
def get_workflow_from_s3()
in packages/cdk/lib/wes_adapter/amazon_genomics/wes/adapters/CromwellWESAdapter.py
26 7 3
def batch_job_wes_state()
in packages/cdk/lib/wes_adapter/amazon_genomics/wes/adapters/BatchAdapter.py
15 7 2
def to_dict()
in packages/cdk/lib/wes_adapter/rest_api/models/base_model_.py
20 7 1