aws / aws-sdk-ruby-record
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 281 units with 2,283 lines of code in units (24.3% 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)
    • 10 simple units (265 lines of code)
    • 271 very simple units (2,018 lines of code)
0% | 0% | 0% | 11% | 88%
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% | 11% | 88%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/aws-record0% | 0% | 0% | 11% | 88%
spec/aws-record0% | 0% | 0% | 0% | 100%
features0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
_validate_required_configuration
in lib/aws-record/record/table_config.rb
16 8 0
create!
in lib/aws-record/record/table_migration.rb
30 7 1
migrate!
in lib/aws-record/record/table_config.rb
38 7 0
_gsi_set_compare
in lib/aws-record/record/table_config.rb
26 7 2
_validate_billing
in lib/aws-record/record/table_migration.rb
26 6 1
_perform_save
in lib/aws-record/record/item_operations.rb
50 6 1
exact_match?
in lib/aws-record/record/table_config.rb
12 6 0
_update_throughput_opts
in lib/aws-record/record/table_config.rb
27 6 1
_transform_transact_write_items
in lib/aws-record/record/transactions.rb
24 6 3
_format
in lib/aws-record/record/marshalers/epoch_time_marshaler.rb
16 6 1
_build_update_expression
in lib/aws-record/record/item_operations.rb
35 5 1
parallel_scan
in lib/aws-record/record/buildable_search.rb
11 5 1
key_expr
in lib/aws-record/record/buildable_search.rb
19 5 2
_transform_save_record
in lib/aws-record/record/transactions.rb
22 5 2
_format
in lib/aws-record/record/marshalers/time_marshaler.rb
14 5 1
_format
in lib/aws-record/record/marshalers/date_time_marshaler.rb
14 5 1
type_cast
in lib/aws-record/record/marshalers/map_marshaler.rb
18 5 1
type_cast
in lib/aws-record/record/marshalers/numeric_set_marshaler.rb
18 5 1
type_cast
in lib/aws-record/record/marshalers/date_marshaler.rb
14 5 1
type_cast
in lib/aws-record/record/marshalers/string_set_marshaler.rb
18 5 1