From 94cbbb2f043b86bc96b1bf31ef8fe8547be64522 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Thu, 17 Dec 2020 16:18:30 -0800 Subject: [PATCH] Remove outdated swiftlint directives --- .swiftlint.yml | 3 --- .../ServiceLayer/Utilities/UserNotificationClient.swift | 2 -- System/MetatextApp.swift | 2 -- 3 files changed, 7 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index b3e0b0c..7184a50 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -1,8 +1,5 @@ disabled_rules: - identifier_name - type_name - # Swift 5.3 - - multiple_closures_with_trailing_closure - - no_space_in_method_call opt_in_rules: - sorted_imports diff --git a/ServiceLayer/Sources/ServiceLayer/Utilities/UserNotificationClient.swift b/ServiceLayer/Sources/ServiceLayer/Utilities/UserNotificationClient.swift index 3e61bf2..fb1dc7e 100644 --- a/ServiceLayer/Sources/ServiceLayer/Utilities/UserNotificationClient.swift +++ b/ServiceLayer/Sources/ServiceLayer/Utilities/UserNotificationClient.swift @@ -26,7 +26,6 @@ public struct UserNotificationClient { extension UserNotificationClient { public static func live(_ userNotificationCenter: UNUserNotificationCenter) -> Self { - // swiftlint:disable nesting final class Delegate: NSObject, UNUserNotificationCenterDelegate { let subject: PassthroughSubject @@ -52,7 +51,6 @@ extension UserNotificationClient { subject.send(.openSettingsForNotification(notification)) } } - // swiftlint:enable nesting let subject = PassthroughSubject() var delegate: Delegate? = Delegate(subject: subject) diff --git a/System/MetatextApp.swift b/System/MetatextApp.swift index 9e537c0..52433ff 100644 --- a/System/MetatextApp.swift +++ b/System/MetatextApp.swift @@ -5,9 +5,7 @@ import ViewModels @main struct MetatextApp: App { - // swiftlint:disable weak_delegate @UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate - // swiftlint:enable weak_delegate var body: some Scene { WindowGroup {