Showing 3 of 19 total issues
Function prepare
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { do { if (segue.identifier == "showView") { let upcoming: ByteListViewController = segue.destination as! ByteListViewController
- Read upRead up
Avoid too many return
statements within this function. Open
Open
return false
Function attachPeripheral
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
override public func attachPeripheral(_ peripheral: XYPeripheral) -> Bool { guard let major = self.iBeacon?.major else { return false }
- Read upRead up