aws / aws-lambda-python-runtime-interface-client
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 64 units with 439 lines of code in units (58.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (106 lines of code)
    • 7 small units (90 lines of code)
    • 54 very small units (243 lines of code)
0% | 0% | 24% | 20% | 55%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 24% | 20% | 55%
cpp0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
awslambdaric0% | 0% | 26% | 18% | 55%
ROOT0% | 0% | 0% | 43% | 56%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def _get_handler()
in awslambdaric/bootstrap.py
43 6 1
def run()
in awslambdaric/bootstrap.py
40 3 3
def log_error()
in awslambdaric/bootstrap.py
23 8 2
16 3 0
def make_xray_fault()
in awslambdaric/bootstrap.py
15 2 4
def __repr__()
in awslambdaric/lambda_context.py
14 1 1
def wait_next_invocation()
in awslambdaric/lambda_runtime_client.py
12 1 1
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 handle_event_request()
in awslambdaric/bootstrap.py
11 1 0
def build_fault_result()
in awslambdaric/bootstrap.py
10 4 2
def __repr__()
in awslambdaric/lambda_context.py
10 1 1
def parse_json_header()
in awslambdaric/bootstrap.py
9 2 2
def post_init_error()
in awslambdaric/lambda_runtime_client.py
9 2 2
def make_error()
in awslambdaric/bootstrap.py
8 5 4
def __repr__()
in awslambdaric/lambda_context.py
8 1 1
8 3 0
def read()
in setup.py
8 2 2
def replace_line_indentation()
in awslambdaric/bootstrap.py
7 3 3
def create_log_sink()
in awslambdaric/bootstrap.py
7 2 0