-
Notifications
You must be signed in to change notification settings - Fork 3
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
Extracting package name from pubspec.yaml #19
Comments
The original assumption was that most projects use the lint https://dart.dev/tools/linter-rules/prefer_relative_imports What you suggested makes sense, but feels as something that is easily breakable by updated format of pubspec.yaml in future versions of dart/flutter. But may be I am wrong. Feel free to put together PR that implements it. I will review and merge it :) |
We use lint collection lint, which is quite popular, especially for being so strict, and there is used the exact opposite, i.e. So, I would say this is not only for some rare projects. However, I'm also not fond of linking directly to |
Thank you for explaining. Sure, feel free to go ahead with the PR. I will review it. |
Implemented. |
Did you push/publish it @polina-c? I can't find it anywhere |
Oh, i mixed it with something else. Reopening. Thanks for the catch.🌤 |
Is there a reason why the
--package
is required when the imports are in form ofpackage:
?I was thinking that if in the
--path
there ispubspec.yaml
, we can extract the package name directly from there. Then the parameter could be useful and used only when the--path
leads to a folder where there is nopubspec.yaml
.The text was updated successfully, but these errors were encountered: