Skip to content

[Fix] UnusedCaptureListRule: unowned self in @escaping closures - #3392

Merged
PaulTaykalo merged 2 commits into
realm:masterfrom
hank121314:master
Oct 24, 2020
Merged

PaulTaykalo merged 2 commits into
realm:masterfrom
hank121314:master

Conversation

@hank121314

Copy link
Copy Markdown
Contributor

Summary

This pr fixes: #3389 .

It seems that we also need to prevent [unowned self] from triggering this rule.

Test Plan

I have already add some test in example.

Thanks you so much for your code review! 😄

@SwiftLintBot

Copy link
Copy Markdown
12 Messages
📖 Linting Aerial with this PR took 0.78s vs 0.79s on master (1% faster)
📖 Linting Alamofire with this PR took 0.99s vs 0.98s on master (1% slower)
📖 Linting Firefox with this PR took 3.84s vs 3.77s on master (1% slower)
📖 Linting Kickstarter with this PR took 6.38s vs 6.4s on master (0% faster)
📖 Linting Moya with this PR took 0.52s vs 0.5s on master (4% slower)
📖 Linting Nimble with this PR took 0.6s vs 0.58s on master (3% slower)
📖 Linting Quick with this PR took 0.33s vs 0.32s on master (3% slower)
📖 Linting Realm with this PR took 1.3s vs 1.3s on master (0% slower)
📖 Linting SourceKitten with this PR took 0.48s vs 0.48s on master (0% slower)
📖 Linting Sourcery with this PR took 2.59s vs 2.54s on master (1% slower)
📖 Linting Swift with this PR took 8.16s vs 8.09s on master (0% slower)
📖 Linting WordPress with this PR took 7.18s vs 7.2s on master (0% faster)

Generated by 🚫 Danger

@PaulTaykalo
PaulTaykalo self-requested a review October 24, 2020 18:08
@PaulTaykalo
PaulTaykalo merged commit 9afc3bb into realm:master Oct 24, 2020
@PaulTaykalo

Copy link
Copy Markdown
Contributor

Thanks!

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.

unused_capture_list false positive with explicit capturing of unowned self in Swift 5.3

3 participants