microsoft / tes-azure
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 196 units with 1,740 lines of code in units (54.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (66 lines of code)
    • 7 medium complex units (314 lines of code)
    • 13 simple units (333 lines of code)
    • 175 very simple units (1,027 lines of code)
0% | 3% | 18% | 19% | 59%
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% | 3% | 18% | 19% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
api-server/tesazure/backends0% | 10% | 27% | 27% | 34%
container-filetransfer0% | 0% | 29% | 27% | 43%
api-server/tesazure/tesapi0% | 0% | 47% | 0% | 52%
api-server/tesazure0% | 0% | 0% | 12% | 87%
api-server/tesazure/provisionerapi0% | 0% | 0% | 79% | 20%
api-server/tesazure/auth0% | 0% | 0% | 0% | 100%
api-server/tesazure/user0% | 0% | 0% | 0% | 100%
api-server/migrations/versions0% | 0% | 0% | 0% | 100%
api-server/migrations0% | 0% | 0% | 0% | 100%
api-server0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def get_task()
in api-server/tesazure/backends/batch/__init__.py
66 32 2
def createJob()
in api-server/tesazure/backends/batch/__init__.py
96 24 2
def mangle_task_for_submitter()
in api-server/tesazure/backends/common/__init__.py
47 16 1
def upload_azure_blob()
in container-filetransfer/cloud-transfer.py
50 16 2
def detect_tags_for_submitter()
in api-server/tesazure/backends/common/__init__.py
29 15 1
def get()
in api-server/tesazure/tesapi/api.py
28 13 2
def post()
in api-server/tesazure/tesapi/api.py
22 11 2
def download()
in container-filetransfer/cloud-transfer.py
42 11 3
def validate_config()
in api-server/tesazure/__init__.py
12 10 1
def provision_check()
in api-server/tesazure/backends/batch/__init__.py
36 10 2
def _initializePoolKeywordArgs()
in api-server/tesazure/backends/batch/__init__.py
53 9 3
def cleanup_tasks()
in api-server/tesazure/jobs.py
18 8 0
def validate()
in api-server/tesazure/jwt_validator.py
20 8 2
def _worker_provision_start()
in api-server/tesazure/backends/batch/__init__.py
43 7 1
def determine_azure_vm_for_task()
in api-server/tesazure/backends/common/__init__.py
31 7 4
def connect_ftp()
in container-filetransfer/cloud-transfer.py
11 7 1
def __init__()
in api-server/tesazure/backends/batch/models.py
13 6 8
def post()
in api-server/tesazure/provisionerapi/api.py
23 6 1
def download_google_storage()
in container-filetransfer/cloud-transfer.py
17 6 2
def download_azure_blob()
in container-filetransfer/cloud-transfer.py
28 6 2