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

[Bug] - Imports followed by comments on the same line are always interpreted as a transitive dependency #3

Open
douglasgondim opened this issue Nov 5, 2024 · 1 comment

Comments

@douglasgondim
Copy link

It's a small issue that would be nice if fixed 🤩.

Repository owner deleted a comment from kostasniks Nov 5, 2024
@Nikoloutsos
Copy link
Owner

Thanks for mentioning that @douglasgondim
Indeed, I was able to reproduce the issue.

import Foo // I am a random comment

makes the internal library used(sitrep) to think the name of the dependency is Foo // I am a random comment
For now, a simple workaround could be to ignore the comments and only keep the first word. So, in the case of Foo // I am a random comment, we’d just take Foo. This should help avoid any issues. In the future, I’m planning to use SwiftSyntax directly, which should make handling these cases a lot smoother!

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

No branches or pull requests

2 participants