-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSwiftLintBaseline.json
More file actions
1 lines (1 loc) · 16.4 KB
/
Copy pathSwiftLintBaseline.json
File metadata and controls
1 lines (1 loc) · 16.4 KB
1
[{"text":" return String((0..<10).map { _ in alphabet.randomElement()! })","violation":{"location":{"character":67,"line":46,"file":"AllHandsOnDeck\/Core\/Models\/PhotoSession.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":" pathURL = URL(string: \"\\(base)\/join\/\\(id)\")!","violation":{"location":{"character":56,"line":57,"file":"AllHandsOnDeck\/Core\/Models\/PhotoSession.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":" pathURL = URL(string: \"allhands:\/\/join\/\\(id)\")!","violation":{"location":{"character":59,"line":59,"file":"AllHandsOnDeck\/Core\/Models\/PhotoSession.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":" var components = URLComponents(url: pathURL, resolvingAgainstBaseURL: false)!","violation":{"location":{"character":85,"line":63,"file":"AllHandsOnDeck\/Core\/Models\/PhotoSession.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":" return components.url!","violation":{"location":{"character":30,"line":69,"file":"AllHandsOnDeck\/Core\/Models\/PhotoSession.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":" case quartermaster = 5","violation":{"location":{"character":10,"line":9,"file":"AllHandsOnDeck\/Core\/Models\/PirateRank.swift"},"ruleDescription":"Identifiers should use inclusive language that avoids discrimination against groups of people based on race, gender, or socioeconomic status.","ruleIdentifier":"inclusive_language","severity":"error","reason":"Declaration quartermaster contains the term \"master\" which is not considered inclusive","ruleName":"Inclusive Language"}},{"text":"import AVFoundation","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Camera\/CameraPreviewView.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":" private nonisolated func configureSession(position: AVCaptureDevice.Position,","violation":{"location":{"character":25,"line":157,"file":"AllHandsOnDeck\/Core\/Services\/Camera\/CameraService.swift"},"ruleDescription":"Complexity of function bodies should be limited.","ruleIdentifier":"cyclomatic_complexity","severity":"error","reason":"Function should have complexity 10 or less; currently complexity is 13","ruleName":"Cyclomatic Complexity"}},{"text":" let smallest = sortedAscending.first!","violation":{"location":{"character":49,"line":336,"file":"AllHandsOnDeck\/Core\/Services\/Camera\/CameraService.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":" let largest = sortedAscending.last!","violation":{"location":{"character":47,"line":337,"file":"AllHandsOnDeck\/Core\/Services\/Camera\/CameraService.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Countdown\/CountdownCoordinator.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import Foundation","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Identity\/GameCenterService.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Identity\/IdentityService.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import CoreMotion","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Motion\/LevelService.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import CoreImage.CIFilterBuiltins","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/QR\/QRCodeService.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"@preconcurrency import AVFoundation","violation":{"location":{"character":24,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/QR\/QRScannerView.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Session\/CompositeSessionTransport.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":" self.localParticipantID = children.first!.localParticipantID","violation":{"location":{"character":49,"line":37,"file":"AllHandsOnDeck\/Core\/Services\/Session\/CompositeSessionTransport.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Session\/MockSessionTransport.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Session\/MultipeerSessionTransport.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":" nonisolated func session(_ session: MCSession, peer peerID: MCPeerID, didChange state: MCSessionState) {","violation":{"location":{"character":17,"line":175,"file":"AllHandsOnDeck\/Core\/Services\/Session\/MultipeerSessionTransport.swift"},"ruleDescription":"Complexity of function bodies should be limited.","ruleIdentifier":"cyclomatic_complexity","severity":"error","reason":"Function should have complexity 10 or less; currently complexity is 11","ruleName":"Cyclomatic Complexity"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Session\/SessionTransport.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Session\/SupabaseSessionTransport.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Session\/WebSocketSessionTransport.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":" var comps = URLComponents(url: serverURL, resolvingAgainstBaseURL: false)!","violation":{"location":{"character":82,"line":59,"file":"AllHandsOnDeck\/Core\/Services\/Session\/WebSocketSessionTransport.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":" private func handle(_ message: URLSessionWebSocketTask.Message) async {","violation":{"location":{"character":13,"line":135,"file":"AllHandsOnDeck\/Core\/Services\/Session\/WebSocketSessionTransport.swift"},"ruleDescription":"Complexity of function bodies should be limited.","ruleIdentifier":"cyclomatic_complexity","severity":"error","reason":"Function should have complexity 10 or less; currently complexity is 12","ruleName":"Cyclomatic Complexity"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/UniversalLinks\/UniversalLinkHandler.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import CoreImage","violation":{"location":{"character":8,"line":3,"file":"AllHandsOnDeck\/Core\/Services\/Vision\/InFrameDetector.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import CoreImage","violation":{"location":{"character":8,"line":3,"file":"AllHandsOnDeck\/Core\/Services\/Vision\/PhotoQualityScorer.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":" (eyesOpen * 4.0) + \/\/ weight 4 for full open","violation":{"location":{"character":22,"line":64,"file":"AllHandsOnDeck\/Core\/Services\/Vision\/PhotoQualityScorer.swift"},"ruleDescription":"Operators should be surrounded by a single whitespace when they are being used","ruleIdentifier":"operator_usage_whitespace","severity":"error","reason":"Operators should be surrounded by a single whitespace when they are being used","ruleName":"Operator Usage Whitespace"}},{"text":" (sharpness * 2.0) \/\/ sharpness already normalized 0..1","violation":{"location":{"character":23,"line":65,"file":"AllHandsOnDeck\/Core\/Services\/Vision\/PhotoQualityScorer.swift"},"ruleDescription":"Operators should be surrounded by a single whitespace when they are being used","ruleIdentifier":"operator_usage_whitespace","severity":"error","reason":"Operators should be surrounded by a single whitespace when they are being used","ruleName":"Operator Usage Whitespace"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Core\/Services\/Watch\/WatchConnectivityBridge.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":" Link(\"Privacy\", destination: URL(string: \"https:\/\/all-hands-on-deck-ae29e.web.app\/privacy\")!)","violation":{"location":{"character":108,"line":264,"file":"AllHandsOnDeck\/Features\/Home\/HomeView.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":" Link(\"Imprint\", destination: URL(string: \"https:\/\/all-hands-on-deck-ae29e.web.app\/imprint\")!)","violation":{"location":{"character":108,"line":266,"file":"AllHandsOnDeck\/Features\/Home\/HomeView.swift"},"ruleDescription":"Force unwrapping should be avoided","ruleIdentifier":"force_unwrapping","severity":"error","reason":"Force unwrapping should be avoided","ruleName":"Force Unwrapping"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Features\/Host\/HostSessionViewModel.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":" func handle(_ event: SessionEvent) {","violation":{"location":{"character":5,"line":379,"file":"AllHandsOnDeck\/Features\/Host\/HostSessionViewModel.swift"},"ruleDescription":"Complexity of function bodies should be limited.","ruleIdentifier":"cyclomatic_complexity","severity":"error","reason":"Function should have complexity 10 or less; currently complexity is 17","ruleName":"Cyclomatic Complexity"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Features\/Nearby\/NearbySessionsViewModel.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":"import Combine","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Features\/Viewer\/ViewerSessionViewModel.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":" if status == .connected, finalPhoto == nil { status = .lost }","violation":{"location":{"character":73,"line":134,"file":"AllHandsOnDeck\/Features\/Viewer\/ViewerSessionViewModel.swift"},"ruleDescription":"Else and catch should be on the same line, one space after the previous declaration","ruleIdentifier":"statement_position","severity":"error","reason":"Else and catch should be on the same line, one space after the previous declaration","ruleName":"Statement Position"}},{"text":"import AVFoundation","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Shared\/Components\/CameraPreviewView.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":" }) {","violation":{"location":{"character":12,"line":16,"file":"AllHandsOnDeck\/Shared\/Components\/PrimaryButton.swift"},"ruleDescription":"Trailing closure syntax should not be used when passing more than one closure argument","ruleIdentifier":"multiple_closures_with_trailing_closure","severity":"error","reason":"Trailing closure syntax should not be used when passing more than one closure argument","ruleName":"Multiple Closures with Trailing Closure"}},{"text":"@preconcurrency import AVFoundation","violation":{"location":{"character":24,"line":2,"file":"AllHandsOnDeck\/Shared\/Components\/QRScannerView.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}},{"text":" if success { supabaseFramesWritten &+= 1; supabaseLastWriteMs = 0 }","violation":{"location":{"character":75,"line":53,"file":"AllHandsOnDeck\/Shared\/Utilities\/DebugSessionState.swift"},"ruleDescription":"Else and catch should be on the same line, one space after the previous declaration","ruleIdentifier":"statement_position","severity":"error","reason":"Else and catch should be on the same line, one space after the previous declaration","ruleName":"Statement Position"}},{"text":" if success { supabaseFramesRead &+= 1; supabaseLastReadMs = 0 }","violation":{"location":{"character":71,"line":57,"file":"AllHandsOnDeck\/Shared\/Utilities\/DebugSessionState.swift"},"ruleDescription":"Else and catch should be on the same line, one space after the previous declaration","ruleIdentifier":"statement_position","severity":"error","reason":"Else and catch should be on the same line, one space after the previous declaration","ruleName":"Statement Position"}},{"text":"import ImageIO","violation":{"location":{"character":8,"line":2,"file":"AllHandsOnDeck\/Shared\/Utilities\/ImageCompression.swift"},"ruleDescription":"Imports should be sorted","ruleIdentifier":"sorted_imports","severity":"error","reason":"Imports should be sorted","ruleName":"Sorted Imports"}}]