Fix unused_import when using a constructor defined transitively#5246
Merged
SimplyDanny merged 1 commit intoOct 1, 2023
Merged
Conversation
Generated by 🚫 Danger |
Contributor
Author
|
What is the best way to model this fix in a test? |
Collaborator
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. |
Contributor
Author
|
I'm good to merge as is then, thanks! |
Collaborator
|
Please rebase. Danger doesn't like merge commits. 😉 |
…in a transitive module.
bfb4101 to
bc98118
Compare
SimplyDanny
approved these changes
Oct 1, 2023
KS1019
pushed a commit
to KS1019/SwiftLint
that referenced
this pull request
Oct 2, 2023
…in transitive modules (realm#5246)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a false positive in
unused_importwhen using a constructor defined in a transitive module.swiftlang/swift@3ea9bed added additional cursor info for the constructor in
key.secondary_symbols.Example