microsoft / fastlane-plugin-appcenter
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 43 units with 339 lines of code in units (38.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (43 lines of code)
    • 6 small units (76 lines of code)
    • 35 very small units (220 lines of code)
0% | 0% | 12% | 22% | 64%
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% | 12% | 22% | 64%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
spec0% | 0% | 12% | 22% | 64%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
stub_fetch_devices_chain
in spec/appcenter_stub.rb
22 3 4
stub_fetch_distribution_groups_chain
in spec/appcenter_stub.rb
21 3 6
stub_create_app_429
in spec/upload_stubs.rb
16 1 7
stub_create_release_upload_429
in spec/upload_stubs.rb
14 3 4
stub_create_app_exception
in spec/upload_stubs.rb
12 1 7
stub_add_to_destination
in spec/upload_stubs.rb
12 2 6
stub_check_app_429
in spec/upload_stubs.rb
11 1 3
stub_create_app
in spec/upload_stubs.rb
11 1 7
default_group
in spec/appcenter_fetch_devices_action_spec.rb
10 1 0
stub_fetch_devices
in spec/appcenter_stub.rb
10 1 3
10 3 4
allow_devices_file
in spec/appcenter_fetch_devices_action_spec.rb
9 1 1
stub_fetch_distribution_groups
in spec/appcenter_stub.rb
9 1 5
stub_create_release_upload
in spec/upload_stubs.rb
9 3 4
stub_create_dsym_upload
in spec/upload_stubs.rb
9 1 1
stub_create_mapping_upload
in spec/upload_stubs.rb
9 1 4
stub_check_app_exception
in spec/upload_stubs.rb
8 1 3
stub_check_app
in spec/upload_stubs.rb
7 1 3
stub_update_release_upload
in spec/upload_stubs.rb
7 1 4
stub_update_dsym_upload
in spec/upload_stubs.rb
7 1 2