aws / aws-lambda-ruby-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 47 units with 391 lines of code in units (76.2% 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 (42 lines of code)
    • 45 very simple units (349 lines of code)
0% | 0% | 0% | 10% | 89%
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
rb0% | 0% | 0% | 10% | 89%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/aws_lambda_ric0% | 0% | 0% | 14% | 85%
lib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
call_handler
in lib/aws_lambda_ric/lambda_handler.rb
20 6 2
next_invocation
in lib/aws_lambda_ric/lambda_server.rb
22 6 0
initialize
in lib/aws_lambda_ric/logger_patch.rb
16 4 0
_sanitize_stacktrace
in lib/aws_lambda_ric/lambda_errors.rb
16 4 1
run_user_code
in lib/aws_lambda_ric.rb
20 4 1
initialize
in lib/aws_lambda_ric/lambda_context.rb
13 3 1
initialize
in lib/aws_lambda_ric/lambda_handler.rb
10 3 1
write
in lib/aws_lambda_ric/telemetry_log_sink.rb
9 3 1
send_response
in lib/aws_lambda_ric/lambda_server.rb
15 3 3
send_error_response
in lib/aws_lambda_ric/lambda_server.rb
14 3 4
run
in lib/aws_lambda_ric.rb
15 3 2
start_runtime_loop
in lib/aws_lambda_ric.rb
6 3 0
wait_for_invocation
in lib/aws_lambda_ric.rb
12 3 0
log_error
in lib/aws_lambda_ric/lambda_logger.rb
4 2 2
marshall_request
in lib/aws_lambda_ric/aws_lambda_marshaller.rb
8 2 1
marshall_response
in lib/aws_lambda_ric/aws_lambda_marshaller.rb
8 2 1
as_json
in lib/aws_lambda_ric/xray_cause.rb
5 2 0
normalize
in lib/aws_lambda_ric/xray_cause.rb
17 2 1
self.fetch_runtime_server
in lib/aws_lambda_ric/bootstrap.rb
6 2 0
self.bootstrap_telemetry_log_sink
in lib/aws_lambda_ric/bootstrap.rb
7 2 1