aws-samples / amazon-aurora-global-database-endpoint-automation
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 16 units with 425 lines of code in units (59.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (115 lines of code)
    • 2 medium complex units (87 lines of code)
    • 5 simple units (81 lines of code)
    • 8 very simple units (142 lines of code)
0% | 27% | 20% | 19% | 33%
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% | 27% | 20% | 19% | 33%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 27% | 20% | 19% | 33%
Most Complex Units
Top 16 most complex units
Unit# linesMcCabe index# params
def main()
in create_managed_endpoint.py
115 45 0
def main()
in buildstack.py
73 25 0
def exists_hz()
in create_managed_endpoint.py
14 13 1
def exists_hz_record()
in create_managed_endpoint.py
20 9 2
def exists_hz_vpc()
in create_managed_endpoint.py
16 8 3
def checkstackname()
in buildstack.py
14 8 1
def get_writer_endpoint()
in create_managed_endpoint.py
10 7 1
def checkstackstatus()
in buildstack.py
21 7 1
def validateregion()
in create_managed_endpoint.py
13 5 1
def validateregion()
in buildstack.py
13 5 1
def create_hosted_zone_record()
in create_managed_endpoint.py
27 4 3
def hosted_zone_id()
in create_managed_endpoint.py
12 4 1
def buildstack()
in buildstack.py
19 3 1
def create_hosted_zone()
in create_managed_endpoint.py
20 2 3
def update_hosted_zone()
in create_managed_endpoint.py
14 2 3
def make_ddb_entry()
in create_managed_endpoint.py
24 2 4