awslabs / aws-trusted-advisor-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 55 units with 902 lines of code in units (90.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (85 lines of code)
    • 13 simple units (321 lines of code)
    • 41 very simple units (496 lines of code)
0% | 0% | 9% | 35% | 54%
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% | 9% | 35% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source0% | 0% | 9% | 35% | 54%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def genericTAParse()
in source/extract-ta-data-lambda.py
85 11 10
def list_accounts_from_file()
in source/get-accounts-info-lambda.py
42 8 0
def lambda_handler()
in source/get-accounts-info-lambda.py
45 8 2
def getTagInfo()
in source/extract-tag-data-lambda.py
28 8 8
def lambda_handler()
in source/create-athena-views-lambda.py
93 7 2
def sanitize_json()
in source/extract-ta-data-lambda.py
11 6 1
def sanitize_json()
in source/get-accounts-info-lambda.py
11 6 1
def sanitize_json()
in source/start-crawler-lambda.py
11 6 1
def sanitize_json()
in source/extract-tag-data-lambda.py
11 6 1
def lambda_handler()
in source/extract-tag-data-lambda.py
25 6 2
def sanitize_json()
in source/verify-ta-check-status-lambda.py
11 6 1
def sanitize_json()
in source/get-tags-lambda.py
11 6 1
def sanitize_json()
in source/get-ta-checks-lambda.py
11 6 1
def sanitize_json()
in source/refresh-ta-check-lambda.py
11 6 1
def lambda_handler()
in source/extract-ta-data-lambda.py
28 5 2
def get_trusted_advisor_checks()
in source/get-ta-checks-lambda.py
20 5 6
def list_accounts_from_organizations()
in source/get-accounts-info-lambda.py
22 4 0
def lambda_handler()
in source/verify-ta-check-status-lambda.py
32 4 2
def checkIfTagsTableExistInDB()
in source/create-athena-views-lambda.py
16 4 1
def lambda_handler()
in source/start-crawler-lambda.py
13 3 2