Remove outdated swiftlint directives

This commit is contained in:
Justin Mazzocchi 2020-12-17 16:18:30 -08:00
parent d86bbda4c2
commit 94cbbb2f04
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
3 changed files with 0 additions and 7 deletions

View File

@ -1,8 +1,5 @@
disabled_rules: disabled_rules:
- identifier_name - identifier_name
- type_name - type_name
# Swift 5.3
- multiple_closures_with_trailing_closure
- no_space_in_method_call
opt_in_rules: opt_in_rules:
- sorted_imports - sorted_imports

View File

@ -26,7 +26,6 @@ public struct UserNotificationClient {
extension UserNotificationClient { extension UserNotificationClient {
public static func live(_ userNotificationCenter: UNUserNotificationCenter) -> Self { public static func live(_ userNotificationCenter: UNUserNotificationCenter) -> Self {
// swiftlint:disable nesting
final class Delegate: NSObject, UNUserNotificationCenterDelegate { final class Delegate: NSObject, UNUserNotificationCenterDelegate {
let subject: PassthroughSubject<DelegateEvent, Never> let subject: PassthroughSubject<DelegateEvent, Never>
@ -52,7 +51,6 @@ extension UserNotificationClient {
subject.send(.openSettingsForNotification(notification)) subject.send(.openSettingsForNotification(notification))
} }
} }
// swiftlint:enable nesting
let subject = PassthroughSubject<DelegateEvent, Never>() let subject = PassthroughSubject<DelegateEvent, Never>()
var delegate: Delegate? = Delegate(subject: subject) var delegate: Delegate? = Delegate(subject: subject)

View File

@ -5,9 +5,7 @@ import ViewModels
@main @main
struct MetatextApp: App { struct MetatextApp: App {
// swiftlint:disable weak_delegate
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate @UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
// swiftlint:enable weak_delegate
var body: some Scene { var body: some Scene {
WindowGroup { WindowGroup {