-
Notifications
You must be signed in to change notification settings - Fork 2.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
Fix unused_import
when using a constructor defined transitively
#5246
Fix unused_import
when using a constructor defined transitively
#5246
Conversation
Generated by 🚫 Danger |
What is the best way to model this fix in a test? |
I can only think of a separate test that runs the rule on a dummy project portraying exactly this setup of dependencies, that is an Xcode project with three modules like you've used in the description. But it's also fine for me to accept this PR without a dedicated test as all existing examples still seem to work. |
I'm good to merge as is then, thanks! |
Please rebase. Danger doesn't like merge commits. 😉 |
…in a transitive module.
bfb4101
to
bc98118
Compare
…in transitive modules (realm#5246)
Fixes a false positive in
unused_import
when using a constructor defined in a transitive module.swiftlang/swift@3ea9bed added additional cursor info for the constructor in
key.secondary_symbols
.Example