Skip to content
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

fix: disable overzealous swiftlint warnings #33

Closed
wants to merge 1 commit into from

Conversation

giralte-ionic
Copy link
Contributor

No description provided.

@giralte-ionic giralte-ionic changed the title disable overzealous swiftlint warnings fix: disable overzealous swiftlint warnings Aug 14, 2023
@@ -116,6 +116,7 @@ public class BackgroundRunner {

var err: Error?

// swiftlint:disable:next unowned_variable_capture
DispatchQueue.global(qos: .userInitiated).async { [unowned self] in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could [weak self] and guard let self { return } work here? Or is [unowned self] better?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda decided against more wholesale changes and instead ignoring the lint warnings in case I actually break things. At best you can say the issues are document at the point of occurrence so could be addressed later. I kinda want to revert the changes to Notifications.swift in favor of just disabling the lint warning.

@giralte-ionic giralte-ionic deleted the fix/lint-errors branch August 17, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants