aws-samples / aws-device-farm-sample-app-for-ios
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 42 units with 167 lines of code in units (6.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (21 lines of code)
    • 1 small units (14 lines of code)
    • 40 very small units (132 lines of code)
0% | 0% | 12% | 8% | 79%
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% | 8% | 78%
m0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
features/ios/Base0% | 0% | 42% | 28% | 30%
features/ios/pages0% | 0% | 0% | 0% | 100%
ADFiOSReferenceApp0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
navigate_to_page
in features/ios/Base/navigator.rb
21 3 1
navigate_to
in features/ios/Base/navigator.rb
14 4 1
enter_creds
in features/ios/pages/login_page.rb
7 1 2
press_next_level_button
in features/ios/pages/nested_view_page.rb
6 1 1
int main()
in ADFiOSReferenceApp/main.m
5 1 2
check_if_login_fields_exists
in features/ios/pages/login_page.rb
4 1 0
check_modal_page_alert
in features/ios/pages/alert_page.rb
4 1 2
check_for_alert_message
in features/ios/pages/alert_page.rb
4 1 2
check_for_dismissed_alert_message
in features/ios/pages/alert_page.rb
4 1 1
get_app_name
in features/ios/Base/navigator.rb
3 1 0
get_toolbar_title
in features/ios/Base/ADFBasePage.rb
3 1 1
check_if_id_exists
in features/ios/Base/ADFBasePage.rb
3 1 1
check_if_id_contains_text
in features/ios/Base/ADFBasePage.rb
3 1 2
check_if_label_contains_text
in features/ios/Base/ADFBasePage.rb
3 1 1
trait
in features/ios/pages/login_page.rb
3 1 0
check_if_login_button_exists
in features/ios/pages/login_page.rb
3 1 0
verify_alt_message
in features/ios/pages/login_page.rb
3 1 1
verify_alt_button_text
in features/ios/pages/login_page.rb
3 1 1
user_name_field
in features/ios/pages/login_page.rb
3 1 0
password_field
in features/ios/pages/login_page.rb
3 1 0