-
Notifications
You must be signed in to change notification settings - Fork 30
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
Remove package_prefixed_library_names
from core set (and deprecate)
#172
Comments
package_prefixed_library_names
from core set (and deprecate)package_prefixed_library_names
from core set (and deprecate)
@natebosch @goderbauer @lrhn - can you review this proposal and give an initial thumbs-up / thumbs-down (with some rational if useful)? |
Is there risk of users not getting help if they add a library name unnecessarily, and the library name doesn't follow these patterns? Should we be linting to encourage unnamed libraries? If the lint is currently not firing, I'm on board with removing it from the lint sets before (or instead of) fixing the lint implementation. I do think it's lower value now that we can have bare |
Maybe we should consider Since the lint is not working (@parlough is there a bug on file for this?) I'd be ok with removing it. |
|
dart-lang/linter#3395 is the original bug. I don't have all the context, but @pq might :)
+1 Yes please. Then |
It sounds like there's general agreement that it's okay to remove this lint because it doesn't work, but there's also some thoughts that the lint isn't super valuable anymore. Considering that, I'd propose the following:
|
If you do give your library a name (why?) then I think it is a good idea to include your package name in the library name. I just wrote Ok with removing the lint. |
After discussion, we're in favor of removing this lint from the core set. The other items discussed in this issue ( |
I'm opening this issue in this repository to discuss how to handle ecosystem affecting linter rule changes, such as this case when one of the effected lints is in one of the core sets. (As requested by Brian)
Currently,
package_prefixed_library_names
which is in the core set isn't functional. The same goes forpackage_api_docs
which isn't in any of the core sets currently. This has been the case for the past few releases after dart-lang/linter@008a8a0.Fixing/reimplementing these lints now is a bit dangerous as they are both quite heavily depended on, especially with
package_prefixed_library_names
as part of the core set. It could result in a lot of new lints triggering on code with an SDK update.So the question is if those lints starting to trigger on an SDK update are ok, or should these lints be removed from the core sets, deprecated, and slated for removal? If their functionality is still desired, we can always introduce new lints. Technically these both don't follow today's linter rule naming scheme anyway.
As an aside for these two rules specifically, but not relevant to the question of how to handle this in general:
package_prefixed_library_names
isn't super useful since users should generally shouldn't name libraries anymore.public_member_api_docs
covers many of the use cases ofpackage_api_docs
.\cc @bwilkerson @pq @devoncarew
The text was updated successfully, but these errors were encountered: