aws / aws-health-tools
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 44 units with 629 lines of code in units (13.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (48 lines of code)
    • 4 simple units (107 lines of code)
    • 39 very simple units (474 lines of code)
0% | 0% | 7% | 17% | 75%
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% | 8% | 19% | 72%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
shd-notifier0% | 0% | 25% | 46% | 28%
automated-actions/AWS_EBS_VOLUME_LOST0% | 0% | 0% | 15% | 84%
automated-actions/AWS_RISK_CREDENTIALS_EXPOSED0% | 0% | 0% | 0% | 100%
high-availability-endpoint/python0% | 0% | 0% | 0% | 100%
automated-actions/AWS_EC2_INSTANCE_STORE_DRIVE_PERFORMANCE_DEGRADED0% | 0% | 0% | 0% | 100%
coralogix-notifier0% | 0% | 0% | 0% | 100%
automated-actions/AWS_ELASTICLOADBALANCING_ENI_LIMIT_REACHED0% | 0% | 0% | 0% | 100%
teams-notifier0% | 0% | 0% | 0% | 100%
slack-notifier0% | 0% | 0% | 0% | 100%
chime-notifier0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def lambda_handler()
in shd-notifier/Health-Event-Chat-Post-LambdaFn.py
48 14 2
def lambda_handler()
in shd-notifier/Health-Event-Poller-LambdaFn.py
44 10 2
def chatMessage()
in shd-notifier/Health-Event-Chat-Post-LambdaFn.py
28 8 4
def on_intent()
in automated-actions/AWS_EBS_VOLUME_LOST/stepbystep/alexa_skill.py
19 8 2
def lambda_handler()
in shd-notifier/Health-Event-Iterator-LambdaFn.py
16 6 2
def lambda_handler()
in shd-notifier/Health-Event-Status-LambdaFn.py
25 5 2
def lambda_handler()
in coralogix-notifier/LambdaFunction.py
25 5 2
def get_events_summaries()
in automated-actions/AWS_RISK_CREDENTIALS_EXPOSED/lambda_functions/lookup_cloudtrail_events.py
11 5 1
def client()
in high-availability-endpoint/python/health_client.py
14 5 0
def describe_events()
in high-availability-endpoint/python/main.py
17 5 0
function deleteNetworkInterface()
in automated-actions/AWS_ELASTICLOADBALANCING_ENI_LIMIT_REACHED/LambdaFunction.js
24 4 2
function getMatchingInstances()
in automated-actions/AWS_EC2_INSTANCE_STORE_DRIVE_PERFORMANCE_DEGRADED/LambdaFunction.js
15 4 1
def lambda_handler()
in automated-actions/AWS_EBS_VOLUME_LOST/stepbystep/alexa_skill.py
8 4 2
def lambda_handler()
in chime-notifier/LambdaFunction.py
15 3 2
def lambda_handler()
in slack-notifier/LambdaFunction.py
17 3 2
def lambda_handler()
in teams-notifier/LambdaFunction.py
20 3 2
def chimeTrimMessage()
in shd-notifier/Health-Event-Chat-Post-LambdaFn.py
5 3 1
def eventDetailedDesc()
in shd-notifier/Health-Event-Chat-Post-LambdaFn.py
16 3 1
def lambda_handler()
in automated-actions/AWS_RISK_CREDENTIALS_EXPOSED/lambda_functions/lookup_cloudtrail_events.py
21 3 2
function handleResponse()
in automated-actions/AWS_EC2_INSTANCE_STORE_DRIVE_PERFORMANCE_DEGRADED/LambdaFunction.js
14 3 2