Remove wildcard imports (in particular super::*) #93
Loading…
Reference in New Issue
No description provided.
Delete Branch "remove-wildcard-imports"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
These are annoying because its hard to see what is actually imported by a particular file. I thought I already did this before, but maybe that was only for database code? Anyway it would be nice to have a lint so we dont get the same thing in again in the future. There is clippy::wildcard_imports, but unfortunately that one is way too strict. Maybe we could just grep for
use super::*
in our CI and fail if that appears anywhere?Probably might need a grep for the character
*
in general.I don't know if its really worth it, there's ~100 of them, and many of them like
prelude::*
seem to be the preferred way to do it.I only want to get rid of
use super::*
, nothing else. I agree with you that getting rid of all wildcard imports would be a waste of time. There is a clippy lint for wildcard imports in general (the one I linked above), but not for thesuper::*
.Ah gotcha.