aws / aws-sdk-ruby-record
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 281 units with 2,283 lines of code in units (24.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 18 medium size units (524 lines of code)
    • 57 small units (797 lines of code)
    • 206 very small units (962 lines of code)
0% | 0% | 22% | 34% | 42%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rb0% | 0% | 22% | 34% | 42%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib/aws-record0% | 0% | 23% | 34% | 41%
features0% | 0% | 0% | 100% | 0%
spec/aws-record0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
_perform_save
in lib/aws-record/record/item_operations.rb
50 6 1
transact_find
in lib/aws-record/record/transactions.rb
44 4 1
_gsi_updates
in lib/aws-record/record/table_config.rb
42 3 1
migrate!
in lib/aws-record/record/table_config.rb
38 7 0
_build_update_expression
in lib/aws-record/record/item_operations.rb
35 5 1
create!
in lib/aws-record/record/table_migration.rb
30 7 1
_update_throughput_opts
in lib/aws-record/record/table_config.rb
27 6 1
_validate_billing
in lib/aws-record/record/table_migration.rb
26 6 1
_gsi_set_compare
in lib/aws-record/record/table_config.rb
26 7 2
update
in lib/aws-record/record/item_operations.rb
25 4 1
_attribute_definitions
in lib/aws-record/record/table_config.rb
25 3 0
find_with_opts
in lib/aws-record/record/item_operations.rb
24 3 1
_transform_transact_write_items
in lib/aws-record/record/transactions.rb
24 6 3
_create_table_opts
in lib/aws-record/record/table_config.rb
22 4 0
_transform_save_record
in lib/aws-record/record/transactions.rb
22 5 2
_transform_update_record
in lib/aws-record/record/transactions.rb
22 3 2
_append_to_attribute_definitions
in lib/aws-record/record/table_migration.rb
21 2 2
tfind_opts
in lib/aws-record/record/item_operations.rb
21 2 1
key_expr
in lib/aws-record/record/buildable_search.rb
19 5 2
_add_throughput_to_gsis
in lib/aws-record/record/table_migration.rb
18 4 2