aws / amazon-freertos-ble-ios-sdk
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 13 units with 117 lines of code in units (7.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (61 lines of code)
    • 0 small units (0 lines of code)
    • 11 very small units (56 lines of code)
0% | 0% | 52% | 0% | 47%
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% | 52% | 0% | 47%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo0% | 0% | 61% | 0% | 38%
Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/Extensions0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 13 longest units
Unit# linesMcCabe index# params
func showLogin()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/DevicesViewController.swift
34 5 0
func attachPrincipalPolicy()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/DevicesViewController.swift
27 3 0
func centralManagerDidUpdateState()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/DevicesViewController.swift
7 2 0
func updateDebugMessages()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/DebugViewController.swift
6 2 0
func scrollToBottom()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/Extensions/UITextView+Amazon.swift
6 1 0
func centralManagerDidDisconnectDevice()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/DevicesViewController.swift
6 2 1
func application()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/AppDelegate.swift
6 1 2
func reloadDataWithoutAnimation()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/DevicesViewController.swift
5 1 0
func startTimer()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/DebugViewController.swift
4 1 0
func stopTimer()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/DebugViewController.swift
4 1 0
func textFieldShouldReturn()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/Extensions/UIViewController+Amazon.swift
4 1 1
func enableTableView()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/Extensions/UITableView+Amazon.swift
4 1 0
func disableTableView()
in Example/AmazonFreeRTOSDemo/AmazonFreeRTOSDemo/Extensions/UITableView+Amazon.swift
4 1 0