Просмотр исходного кода

linting changes with Xcode 26.4 (#597)

Marion Barker 3 месяцев назад
Родитель
Сommit
5df912b66e

+ 6 - 3
LoopFollow/Contact/ContactImageUpdater.swift

@@ -119,15 +119,18 @@ class ContactImageUpdater {
     private func getIncludedFields(for contactType: ContactType) -> [ContactType] {
         var included: [ContactType] = []
         if Storage.shared.contactTrend.value == .include,
-           Storage.shared.contactTrendTarget.value == contactType {
+           Storage.shared.contactTrendTarget.value == contactType
+        {
             included.append(.Trend)
         }
         if Storage.shared.contactDelta.value == .include,
-           Storage.shared.contactDeltaTarget.value == contactType {
+           Storage.shared.contactDeltaTarget.value == contactType
+        {
             included.append(.Delta)
         }
         if Storage.shared.contactIOB.value == .include,
-           Storage.shared.contactIOBTarget.value == contactType {
+           Storage.shared.contactIOBTarget.value == contactType
+        {
             included.append(.IOB)
         }
         return included

+ 3 - 9
LoopFollow/LiveActivity/LALivenessMarker.swift

@@ -1,11 +1,5 @@
-//
-//  LALivenessMarker.swift
-//  LoopFollow
-//
-//  Created by Philippe Achkar on 2026-04-01.
-//  Copyright © 2026 Jon Fawcett. All rights reserved.
-//
-
+// LoopFollow
+// LALivenessMarker.swift
 
 import SwiftUI
 
@@ -24,4 +18,4 @@ struct LALivenessMarker: View {
     private var markerID: String {
         "\(seq)-\(producedAt.timeIntervalSince1970)"
     }
-}
+}

+ 2 - 8
LoopFollow/LiveActivity/LALivenessStore.swift

@@ -1,11 +1,5 @@
-//
-//  LALivenessStore.swift
-//  LoopFollow
-//
-//  Created by Philippe Achkar on 2026-04-01.
-//  Copyright © 2026 Jon Fawcett. All rights reserved.
-//
-
+// LoopFollow
+// LALivenessStore.swift
 
 import Foundation
 

+ 4 - 4
LoopFollow/LiveActivity/LiveActivityManager.swift

@@ -150,7 +150,7 @@ final class LiveActivityManager {
                 message: "[LA] foreground restart: current=nil (old activity not bound locally), ending all existing LAs before restart"
             )
             current = nil
-        
+
             Task {
                 for activity in Activity<GlucoseLiveActivityAttributes>.activities {
                     await activity.end(nil, dismissalPolicy: .immediate)
@@ -178,7 +178,7 @@ final class LiveActivityManager {
             }
         }
     }
-    
+
     @objc private func handleBackgroundAudioFailed() {
         guard Storage.shared.laEnabled.value, current != nil else { return }
         // The background audio session has permanently failed — the app will lose its
@@ -188,7 +188,7 @@ final class LiveActivityManager {
         Storage.shared.laRenewBy.value = Date().timeIntervalSince1970
         refreshFromCurrentState(reason: "audio-session-failed")
     }
-    
+
     private func shouldRestartBecauseExtensionLooksStuck() -> Bool {
         guard Storage.shared.laEnabled.value else { return false }
         guard !dismissedByUser else { return false }
@@ -554,7 +554,7 @@ final class LiveActivityManager {
             highMgdl: Storage.shared.highLine.value,
         )
         GlucoseSnapshotStore.shared.save(snapshot)
-        //WatchConnectivityManager.shared.send(snapshot: snapshot)
+        // WatchConnectivityManager.shared.send(snapshot: snapshot)
 
         // LA update: gated on LA being active, snapshot having changed, and activities enabled.
         guard Storage.shared.laEnabled.value, !dismissedByUser else { return }