firebase / friendlyeats-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 28 units with 223 lines of code in units (22.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (27 lines of code)
    • 7 small units (100 lines of code)
    • 20 very small units (96 lines of code)
0% | 0% | 12% | 44% | 43%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
swift0% | 0% | 12% | 44% | 43%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
FriendlyEats0% | 0% | 12% | 44% | 43%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func controller()
in FriendlyEats/RestaurantsTableViewController.swift
27 4 5
func listen()
in FriendlyEats/LocalCollection.swift
19 2 0
func pickerView()
in FriendlyEats/FiltersViewController.swift
14 6 2
func pickerView()
in FriendlyEats/FiltersViewController.swift
14 6 3
func pickerView()
in FriendlyEats/FiltersViewController.swift
14 6 3
func priceString()
in FriendlyEats/RestaurantsTableViewController.swift
14 5 1
init?()
in FriendlyEats/Restaurant.swift
14 1 1
func query()
in FriendlyEats/RestaurantsTableViewController.swift
11 5 4
func tableView()
in FriendlyEats/RestaurantsTableViewController.swift
8 1 2
init?()
in FriendlyEats/Restaurant.swift
8 1 1
func tableView()
in FriendlyEats/RestaurantsTableViewController.swift
7 1 2
func tableView()
in FriendlyEats/RestaurantDetailViewController.swift
7 1 2
func populate()
in FriendlyEats/RestaurantDetailViewController.swift
7 1 1
func clearFilters()
in FriendlyEats/FiltersViewController.swift
6 1 0
func controller()
in FriendlyEats/FiltersViewController.swift
5 1 5
func reviewController()
in FriendlyEats/RestaurantDetailViewController.swift
5 1 2
func populate()
in FriendlyEats/RestaurantDetailViewController.swift
5 1 1
init()
in FriendlyEats/LocalCollection.swift
5 1 2
func populate()
in FriendlyEats/RestaurantsTableViewController.swift
4 1 1
func application()
in FriendlyEats/AppDelegate.swift
4 1 2