Showing 29 of 106 total issues
File ShopClient.swift
has 357 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import Foundation
import SwiftGRPC
import OpenCannabis
File TelemetryClient+Commercial.swift
has 303 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import Foundation
/// Enumerates errors that may be thrown during operations related to commercial events.
public enum CommercialEventError: Error {
Function searchResult
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func searchResult(term: String,
total: UInt32,
selected: UInt32,
product: ProductKey,
uuid: UUID? = nil,
Function sectionAction
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func sectionAction(section: MenuSection,
action: SectionActionType,
uuid: UUID? = nil,
activeUser: UserKey? = nil,
activeOrder: OrderID? = nil,
Function productAction
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func productAction(product: ProductKey,
action: ProductActionType,
uuid: UUID? = nil,
activeUser: UserKey? = nil,
activeOrder: OrderID? = nil,
Function searchQuery
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func searchQuery(term: String,
total: UInt32,
uuid: UUID? = nil,
activeUser: UserKey? = nil,
activeOrder: OrderID? = nil,
Function productView
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func productView(product: ProductKey,
uuid: UUID? = nil,
activeUser: UserKey? = nil,
activeOrder: OrderID? = nil,
partner: PartnerCode? = nil,
Function resolveCommercialContext
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
fileprivate func resolveCommercialContext(type: CommercialEvent,
section: MenuSection? = nil,
product: ProductKey? = nil,
activeUser: UserKey? = nil,
activeOrder: OrderID? = nil,
Function orderAction
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func orderAction(order: Order,
action: OrderActionType,
uuid: UUID? = nil,
activeUser: UserKey? = nil,
partner: PartnerCode? = nil,
Function sectionImpression
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func sectionImpression(section: MenuSection,
uuid: UUID? = nil,
activeUser: UserKey? = nil,
activeOrder: OrderID? = nil,
partner: PartnerCode? = nil,
Function sectionView
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func sectionView(section: MenuSection,
uuid: UUID? = nil,
activeUser: UserKey? = nil,
activeOrder: OrderID? = nil,
partner: PartnerCode? = nil,
Function beginEnrollment
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func beginEnrollment(phone: PhoneNumber,
name: PersonName,
source: EnrollmentSource,
channel: String? = nil,
preOrder: Bool = false,
Function productImpression
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func productImpression(product: ProductKey,
uuid: UUID? = nil,
activeUser: UserKey? = nil,
activeOrder: OrderID? = nil,
partner: PartnerCode? = nil,
Function beginEnrollment
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func beginEnrollment(phone: PhoneNumber,
name: PersonName,
source: EnrollmentSource,
channel: String? = nil,
preOrder: Bool = false,
Function checkinByCard
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func checkinByCard(cardType: String,
payload: String,
signature: String? = nil,
partner: PartnerCode? = nil,
location: LocationCode? = nil,
Function resolveSearchContext
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
fileprivate func resolveSearchContext(method: SearchEvent,
activeUser: UserKey? = nil,
activeOrder: OrderID? = nil,
partner: PartnerCode? = nil,
location: LocationCode? = nil,
Function checkinByCard
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func checkinByCard(cardType: String,
payload: String,
signature: String? = nil,
partner: PartnerCode? = nil,
location: LocationCode? = nil,
Function checkinByID
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func checkinByID(scan: String,
partner: PartnerCode? = nil,
location: LocationCode? = nil,
deviceName: DeviceCode? = nil,
fingerprint: String? = nil,
Function getOrder
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func getOrder(id: OrderID,
isLocal: Bool = false,
partner: PartnerCode? = nil,
location: LocationCode? = nil,
apiKey: APIKey? = nil,
Function submitOrder
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public func submitOrder(order: Order,
partner: PartnerCode? = nil,
location: LocationCode? = nil,
deviceName: DeviceCode? = nil,
apiKey: APIKey? = nil,