aws-samples / aws-panorama-shelf-monitoring
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 23 units with 207 lines of code in units (28.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 0 simple units (0 lines of code)
    • 23 very simple units (207 lines of code)
0% | 0% | 0% | 0% | 100%
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% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/graphql0% | 0% | 0% | 0% | 100%
cloudformation/custom_resources/sqsInvokedFunction0% | 0% | 0% | 0% | 100%
cloudformation/custom_resources/getAppSyncEndpoint0% | 0% | 0% | 0% | 100%
amplify/backend/function0% | 0% | 0% | 0% | 100%
cloudformation/custom_resources/githubhelper0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def get_appsync_endpoint()
in cloudformation/custom_resources/getAppSyncEndpoint/custom_resource.py
22 5 1
def handler()
in cloudformation/custom_resources/sqsInvokedFunction/lambda_function.py
25 4 2
def poll_create()
in cloudformation/custom_resources/getAppSyncEndpoint/custom_resource.py
13 3 2
async function sendAlert()
in amplify/backend/function/smartshelf72d32494/src/index.js
14 2 2
__type()
in src/graphql/introspections.js
5 1 1
mutation DeleteShelfMonitor()
in src/graphql/mutations.js
5 1 1
deleteShelfMonitor()
in src/graphql/mutations.js
8 1 2
mutation CreateShelfMonitor()
in src/graphql/mutations.js
5 1 1
createShelfMonitor()
in src/graphql/mutations.js
8 1 2
mutation UpdateShelfMonitor()
in src/graphql/mutations.js
5 1 1
updateShelfMonitor()
in src/graphql/mutations.js
8 1 2
query GetShelfMonitor()
in src/graphql/queries.js
2 1 1
getShelfMonitor()
in src/graphql/queries.js
8 1 1
query ListShelfMonitors()
in src/graphql/queries.js
25 1 1
def create()
in cloudformation/custom_resources/githubhelper/custom_resource.py
10 1 2
def no_op()
in cloudformation/custom_resources/githubhelper/custom_resource.py
2 1 2
def handler()
in cloudformation/custom_resources/githubhelper/custom_resource.py
2 1 2
def __init__()
in cloudformation/custom_resources/sqsInvokedFunction/gqllayer.py
25 1 2
def client()
in cloudformation/custom_resources/sqsInvokedFunction/gqllayer.py
2 1 1
def return_gql()
in cloudformation/custom_resources/sqsInvokedFunction/gqllayer.py
2 1 2