microsoft / MCW-SAP-HANA-on-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 34 units with 660 lines of code in units (15.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (78 lines of code)
    • 4 medium complex units (175 lines of code)
    • 5 simple units (124 lines of code)
    • 24 very simple units (283 lines of code)
0% | 11% | 26% | 18% | 42%
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% | 11% | 26% | 18% | 42%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ansible0% | 13% | 29% | 20% | 36%
python-scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def __init__()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
78 30 2
def _load_machines()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
93 21 2
def _add_host()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
35 16 2
def _get_settings()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
23 14 1
def get_inventory()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
24 11 1
def _get_credentials()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
40 10 2
def _tags_match()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
22 9 3
def _selected_machines()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
10 8 2
def __init__()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
39 6 1
def _get_security_groups()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
13 6 2
def _get_profile()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
18 5 2
def _get_env_credentials()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
10 5 1
def _get_msi_credentials()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
14 4 2
def _get_powerstate()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
9 4 3
def _parse_ref_id()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
7 4 2
def _to_boolean()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
8 3 2
def _load_settings()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
19 3 1
def azure_id_to_dict()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
8 2 1
def log()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
3 2 2
def acquire_token_with_username_password()
in Hands-on lab/labfiles/sap-hana/deploy/vm/ansible/azure_rm.py
7 2 7