-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conform to new swiftlint rules #119
Conversation
Kickstarter-iOS/AppDelegate.swift
Outdated
@@ -154,6 +154,7 @@ internal final class AppDelegate: UIResponder, UIApplicationDelegate { | |||
.observeForUI() | |||
.observeValues { [weak self] in self?.findRedirectUrl($0) } | |||
|
|||
//swiftlint:disable discarded_notification_center_observer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've disabled this here seeing as AppDelegate
lives forever?
This isn't needed in iOS 9+. From https://developer.apple.com/library/content/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_11.html:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, we can revert all the notification center stuff and disable the rule in our swiftlint.
then this should be good to go
Ah, I should read the docs occasionally :) |
The latest swiftlint introduced some new rules, this PR just addresses them.
Most notable new rule is
discarded_notification_center_observer
. Turns out all of our block/closureNotification
observers were leaking?Most of the others are fairly innocuous but nice to have them tidied up.