microsoft / service-fabric-backup-explorer
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 224 units with 2,109 lines of code in units (66.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (228 lines of code)
    • 17 simple units (532 lines of code)
    • 201 very simple units (1,349 lines of code)
0% | 0% | 10% | 25% | 63%
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% | 17% | 35% | 47%
cs0% | 0% | 0% | 9% | 90%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/backup-explorer-cli/bkpctl/swagger_client0% | 0% | 19% | 38% | 42%
src/BackupExplorer/Parser0% | 0% | 0% | 12% | 87%
src/BackupExplorer/RestServer0% | 0% | 0% | 9% | 90%
src/BackupExplorer/RestServer/Controllers0% | 0% | 0% | 0% | 100%
src/backup-explorer-cli/bkpctl0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def request()
in src/backup-explorer-cli/bkpctl/swagger_client/rest.py
81 23 9
def sanitize_for_serialization()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
21 15 2
def __deserialize_model()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
23 15 3
def __call_api()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
54 14 15
def __deserialize()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
26 12 3
def parameters_to_tuples()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
23 11 3
internal void OnStateManagerChanged()
in src/BackupExplorer/Parser/TransactionChangeManager.cs
57 9 2
def to_dict()
in src/backup-explorer-cli/bkpctl/swagger_client/models/add_transaction_request.py
23 9 1
def to_dict()
in src/backup-explorer-cli/bkpctl/swagger_client/models/add_transaction_response.py
23 9 1
def to_dict()
in src/backup-explorer-cli/bkpctl/swagger_client/models/backup_request.py
23 9 1
def request()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
59 8 9
def prepare_post_parameters()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
18 8 3
def logger_file()
in src/backup-explorer-cli/bkpctl/swagger_client/configuration.py
16 8 2
def __init__()
in src/backup-explorer-cli/bkpctl/swagger_client/rest.py
38 8 4
def update_params_for_auth()
in src/backup-explorer-cli/bkpctl/swagger_client/api_client.py
16 7 4
def __init__()
in src/backup-explorer-cli/bkpctl/swagger_client/models/add_transaction_request.py
20 7 7
def __init__()
in src/backup-explorer-cli/bkpctl/swagger_client/models/add_transaction_response.py
20 7 7
internal void ValidateAndSetDefaultValues()
in src/BackupExplorer/RestServer/BackupChainInfo.cs
23 6 0
def api_backup_full_post_with_http_info()
in src/backup-explorer-cli/bkpctl/swagger_client/api/default_api.py
47 6 3
def api_backup_incremental_post_with_http_info()
in src/backup-explorer-cli/bkpctl/swagger_client/api/default_api.py
47 6 3