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).
def lambda_handler() in static/Reliability/200_Testing_Backup_and_Restore_of_Data/Code/lambda_function.py
137
26
2
def lambda_handler() in static/watool/200_Manage_Workload_Risks_with_OpsCenter/Code/risk_tracking.py
122
25
2
def main() in static/watool/utilities/Code/exportImportWAFR.py
80
22
0
def deploy_dms() in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/DMSLambda/deploy_dms_lambda.py
109
22
1
def lambda_handler() in static/Security/200_Automated_IAM_User_Cleanup/Code/lambda-iam-user-cleanup.py
117
21
2
def main() in static/watool/utilities/Code/exportAnswersToXLSX.py
58
20
0
def main() in static/watool/utilities/Code/duplicateWAFR.py
61
19
0
public void failover() in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/FailureSimulations/java/appresiliency/src/main/java/com/app/resiliency/AZFailover.java
79
18
0
def lambda_handler() in static/watool/200_Manage_Workload_Risks_with_OpsCenter/Code/update_workload.py
72
17
2
def deploy_web_servers() in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WebAppLambda/deploy_web_lambda.py
96
13
1
def deploy_read_replica() in static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/ReadReplicaLambda/deploy_read_replica_lambda.py