aws / aws-lambda-python-runtime-interface-client
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 64 units with 439 lines of code in units (58.6% 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)
    • 2 simple units (66 lines of code)
    • 62 very simple units (373 lines of code)
0% | 0% | 0% | 15% | 84%
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% | 15% | 84%
cpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
awslambdaric0% | 0% | 0% | 16% | 83%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def log_error()
in awslambdaric/bootstrap.py
23 8 2
def _get_handler()
in awslambdaric/bootstrap.py
43 6 1
def make_error()
in awslambdaric/bootstrap.py
8 5 4
def build_fault_result()
in awslambdaric/bootstrap.py
10 4 2
def default()
in awslambdaric/lambda_runtime_marshaller.py
6 3 2
def unmarshal_request()
in awslambdaric/lambda_runtime_marshaller.py
11 3 3
def marshal_response()
in awslambdaric/lambda_runtime_marshaller.py
11 3 2
def replace_line_indentation()
in awslambdaric/bootstrap.py
7 3 3
def update_xray_env_variable()
in awslambdaric/bootstrap.py
6 3 1
def run()
in awslambdaric/bootstrap.py
40 3 3
def log()
in awslambdaric/lambda_context.py
6 3 2
def set_obj_from_dict()
in awslambdaric/lambda_context.py
5 3 3
8 3 0
16 3 0
5 3 1
def parse_json_header()
in awslambdaric/bootstrap.py
9 2 2
def make_xray_fault()
in awslambdaric/bootstrap.py
15 2 4
def extract_traceback()
in awslambdaric/bootstrap.py
5 2 1
def filter()
in awslambdaric/bootstrap.py
3 2 2
def create_log_sink()
in awslambdaric/bootstrap.py
7 2 0