aws-amplify / amplify-ios-maplibre
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 67 units with 419 lines of code in units (20.7% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 8 small units (115 lines of code)
    • 59 very small units (304 lines of code)
0% | 0% | 0% | 27% | 72%
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% | 0% | 27% | 72%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
HostApp/HostAppUITests0% | 0% | 0% | 60% | 39%
Sources/AmplifyMapLibreUI/SupportingViews0% | 0% | 0% | 48% | 51%
HostApp/HostApp/Views0% | 0% | 0% | 72% | 27%
Sources/AmplifyMapLibreUI/AMLMapCompositeView0% | 0% | 0% | 16% | 83%
Sources/AmplifyMapLibreUI/AMLMapView0% | 0% | 0% | 13% | 86%
Sources/AmplifyMapLibreUI/Extensions0% | 0% | 0% | 100% | 0%
Sources/AmplifyMapLibreUI/MGLMapViewWrapper0% | 0% | 0% | 0% | 100%
Sources/AmplifyMapLibreAdapter/Extensions0% | 0% | 0% | 0% | 100%
Sources/AmplifyMapLibreAdapter0% | 0% | 0% | 0% | 100%
HostApp/HostApp0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
func testSearchField()
in HostApp/HostAppUITests/AMLMapCompositeViewScreen.swift
17 1 0
func searchBarIconOverlay()
in Sources/AmplifyMapLibreUI/SupportingViews/AMLSearchBar.swift
17 1 5
func search()
in HostApp/HostApp/Views/AMLMapView_ViewModel.swift
16 3 2
func search()
in Sources/AmplifyMapLibreUI/AMLMapCompositeView/AMLMapCompositeViewModel.swift
15 3 0
func testMapControlButtons()
in HostApp/HostAppUITests/AMLMapCompositeViewScreen.swift
14 1 0
func testAttributionFlow()
in HostApp/HostAppUITests/AMLMapViewScreen.swift
13 1 0
mutating func transition()
in Sources/AmplifyMapLibreUI/AMLMapView/AMLMapViewState+MapLoadingStateMachine.swift
12 3 2
func snapshot()
in Sources/AmplifyMapLibreUI/Extensions/View+Snapshot.swift
11 1 0
init?()
in Sources/AmplifyMapLibreAdapter/AWSMapURLProtocol+GeoConfig.swift
9 1 0
func featureTapped()
in Sources/AmplifyMapLibreUI/AMLMapCompositeView/AMLMapCompositiveView+ViewModifiers.swift
9 1 2
func featureClusterTapped()
in Sources/AmplifyMapLibreUI/AMLMapCompositeView/AMLMapCompositiveView+ViewModifiers.swift
9 1 2
func featureTapped()
in Sources/AmplifyMapLibreUI/MGLMapViewWrapper/_MGLMapViewWrapper+ViewModifiers.swift
9 1 2
func featureClusterTapped()
in Sources/AmplifyMapLibreUI/MGLMapViewWrapper/_MGLMapViewWrapper+ViewModifiers.swift
9 1 2
func featureTapped()
in Sources/AmplifyMapLibreUI/AMLMapView/AMLMapView+ViewModifiers.swift
9 1 2
func featureClusterTapped()
in Sources/AmplifyMapLibreUI/AMLMapView/AMLMapView+ViewModifiers.swift
9 1 2
func endEditing()
in Sources/AmplifyMapLibreUI/SupportingViews/AMLSearchBar.swift
8 1 0
func mapView()
in Sources/AmplifyMapLibreUI/MGLMapViewWrapper/_MGLMapViewWrapper+Coordinator.swift
8 1 3
func mapView()
in Sources/AmplifyMapLibreUI/MGLMapViewWrapper/_MGLMapViewWrapper+Coordinator.swift
8 2 2
func addCalloutView()
in Sources/AmplifyMapLibreUI/AMLMapView/AMLMapView+ProxyDelegate.swift
8 2 2
func testTapToZoom()
in HostApp/HostAppUITests/AMLMapViewScreen.swift
7 1 0