ericphanson / ExplicitImports.jl

Developer tooling for Julia namespace management: detecting implicit imports, improper explicit imports, and improper qualified accesses
https://ericphanson.github.io/ExplicitImports.jl/
MIT License
62 stars 2 forks source link

support conversion to qualified usage #56

Open ericphanson opened 3 weeks ago

ericphanson commented 3 weeks ago

maybe we could support an experimental source-rewriting feature where we replace implicitly imported names with qualified usages by rewriting the source code. We have the very localized info of where the usages are thanks to the precision of JuliaSyntax so I think this would be doable. It's a bit scary to touch users' files though. If we wanted, we could actually introspect the git state and ensure we are in a non-dirty git repo for safety, before updating any files.