aws-quickstart / quickstart-sap-hana
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 54 units with 1,077 lines of code in units (87.2% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (168 lines of code)
    • 1 medium complex units (54 lines of code)
    • 4 simple units (141 lines of code)
    • 48 very simple units (714 lines of code)
0% | 15% | 5% | 13% | 66%
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% | 18% | 6% | 15% | 59%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts0% | 21% | 6% | 17% | 54%
scripts/suse-rhel-sap-ami0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def main()
in scripts/build_storage.py
168 37 0
def main()
in scripts/reconcile-ips.py
54 11 0
def set_advancedconfig()
in scripts/get_advancedoptions.py
39 8 2
def get_hana_data_log_config()
in scripts/get_vol_template.py
46 7 0
def get_backup()
in scripts/get_vol_template.py
31 6 0
def download_s3()
in scripts/download_media.py
25 6 2
def main()
in scripts/postprocess.py
35 5 0
def get_usrsap()
in scripts/get_vol_template.py
18 4 0
def get_shared()
in scripts/get_vol_template.py
18 4 0
def create_attach_ebs()
in scripts/build_storage.py
17 4 5
function instance2AMIRegEx()
in scripts/suse-rhel-sap-ami/list.js
73 3 0
def main()
in scripts/get_advancedoptions.py
17 3 0
def get_mystack_params()
in scripts/download_media.py
22 3 0
def stripe_hanashared_vol()
in scripts/build_storage.py
15 3 1
def create_backup_volgrp()
in scripts/build_storage.py
10 3 1
def create_hanashared_volgrp()
in scripts/build_storage.py
10 3 1
def create_hanadata_volgrp()
in scripts/build_storage.py
10 3 1
def create_hanalog_volgrp()
in scripts/build_storage.py
10 3 1
def get_backup_drives()
in scripts/build_storage.py
7 3 4
function getAMZNamis()
in scripts/suse-rhel-sap-ami/list.js
14 2 1