Remove outdated swiftlint directives
This commit is contained in:
parent
d86bbda4c2
commit
94cbbb2f04
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue